Btrfs: use find_or_create_page instead of grab_cache_page
authorJosef Bacik <josef@redhat.com>
Mon, 11 Jul 2011 14:47:06 +0000 (10:47 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 27 Jul 2011 16:46:43 +0000 (12:46 -0400)
commita94733d0bc630edaedc6ca156752dd5a7cb82521
tree3f0bd508aa1ce5894e43df45bb73031a380ed8f5
parentbab39bf998133510f2dad08158006197ec0dabea
Btrfs: use find_or_create_page instead of grab_cache_page

grab_cache_page will use mapping_gfp_mask(), which for all inodes is set to
GFP_HIGHUSER_MOVABLE.  So instead use find_or_create_page in all cases where we
need GFP_NOFS so we don't deadlock.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/relocation.c