summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2015-05-06 11:17:01 +0100
committerChris Mason <clm@fb.com>2015-05-06 17:06:13 -0700
commit1d3c61c2eb3fe4f96d3192212f1bdcee49ea55aa (patch)
tree7b62fd2634899a4d6a3bf56a626128f682fda3ae /fs
parent5d2361db48899789fb466ff62db5d5fc7b070e86 (diff)
downloadop-kernel-dev-1d3c61c2eb3fe4f96d3192212f1bdcee49ea55aa.zip
op-kernel-dev-1d3c61c2eb3fe4f96d3192212f1bdcee49ea55aa.tar.gz
Btrfs: fix wrong mapping flags for free space inode
We were passing a flags value that differed from the intention in commit 2b108268006e ("Btrfs: don't use highmem for free space cache pages"). This caused problems in a ARM machine, leaving btrfs unusable there. Reported-by: Merlijn Wajer <merlijn@wizzup.org> Tested-by: Merlijn Wajer <merlijn@wizzup.org> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/free-space-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index 41c510b..5e020d7 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -86,7 +86,7 @@ static struct inode *__lookup_free_space_inode(struct btrfs_root *root,
mapping_set_gfp_mask(inode->i_mapping,
mapping_gfp_mask(inode->i_mapping) &
- ~(GFP_NOFS & ~__GFP_HIGHMEM));
+ ~(__GFP_FS | __GFP_HIGHMEM));
return inode;
}
OpenPOWER on IntegriCloud