Skip to content

Commit 1d3c61c

Browse files
fdmananamasoncl
authored andcommitted
Btrfs: fix wrong mapping flags for free space inode
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>
1 parent 5d2361d commit 1d3c61c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/free-space-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static struct inode *__lookup_free_space_inode(struct btrfs_root *root,
8686

8787
mapping_set_gfp_mask(inode->i_mapping,
8888
mapping_gfp_mask(inode->i_mapping) &
89-
~(GFP_NOFS & ~__GFP_HIGHMEM));
89+
~(__GFP_FS | __GFP_HIGHMEM));
9090

9191
return inode;
9292
}

0 commit comments

Comments
 (0)