]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
cifs: fix allocation in cifs_write_allocate_pages
authorJeff Layton <jlayton@redhat.com>
Fri, 23 Mar 2012 18:40:56 +0000 (14:40 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 23 Mar 2012 18:40:56 +0000 (14:40 -0400)
commite94f7ba124bfbd3898f620c46891ebcfb9cf20d0
treecd7e54dadb4a7617b0fbbd6aaedbcbce4d3e43c4
parentc2e8764009a0245fd24fcd2a63ffbf64236af016
cifs: fix allocation in cifs_write_allocate_pages

The gfp flags are currently set to __GPF_HIGHMEM, which doesn't allow
for any reclaim. Make this more resilient by or'ing that with
GFP_KERNEL. Also, get rid of the goto and unify the exit codepath.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Pavel Shilovsky <piastry@etersoft.ru>
fs/cifs/file.c