Skip to content

Commit

Permalink
Btrfs: fix wrong mapping flags for free space inode
Browse files Browse the repository at this point in the history
We were passing a flags value that differed from the intention in commit
2b10826 ("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>
  • Loading branch information
Filipe Manana authored and Chris Mason committed May 7, 2015
1 parent 5d2361d commit 1d3c61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/free-space-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1d3c61c

Please sign in to comment.