]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: use the inode's mapping mask for allocating pages
authorJosef Bacik <josef@redhat.com>
Wed, 21 Sep 2011 19:05:58 +0000 (15:05 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:23 +0000 (21:20 -0500)
commit72beabbc2d5fd735d01e1c0ced38ae03f87ccdaa
treec2149220b48e42479c05d5e1e623a15d494c2723
parent50a2f2681f65f6201f5f35583be737829b34c76d
Btrfs: use the inode's mapping mask for allocating pages

Johannes pointed out we were allocating only kernel pages for doing writes,
which is kind of a big deal if you are on 32bit and have more than a gig of ram.
So fix our allocations to use the mapping's gfp but still clear __GFP_FS so we
don't re-enter.  Thanks,

Reported-by: Johannes Weiner <jweiner@redhat.com>
Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit 3b16a4e3c355ee3c790473decfcf83d4faeb8ce0)
fs/btrfs/ctree.h
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/relocation.c