]> git.baikalelectronics.ru Git - kernel.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)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:45 +0000 (15:12 -0400)
commit03a69f600396c332254d5bacc8240b4d56f45a33
tree5c3dad941468cf6952623cc18d6b1e682ee3f264
parentf7adb2798390d6e1a1af01f69835b8ae29b8aa3f
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>
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