Skip to content
Commit 3b16a4e3 authored by Josef Bacik's avatar Josef Bacik
Browse files

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: default avatarJohannes Weiner <jweiner@redhat.com>
Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
parent 455757c3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment