diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/free-space-cache.c | 2 | ||||
-rw-r--r-- | fs/btrfs/inode.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 0037427d8a9d..13575de85543 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c | |||
@@ -81,6 +81,8 @@ struct inode *lookup_free_space_inode(struct btrfs_root *root, | |||
81 | return ERR_PTR(-ENOENT); | 81 | return ERR_PTR(-ENOENT); |
82 | } | 82 | } |
83 | 83 | ||
84 | inode->i_mapping->flags &= ~__GFP_FS; | ||
85 | |||
84 | spin_lock(&block_group->lock); | 86 | spin_lock(&block_group->lock); |
85 | if (!root->fs_info->closing) { | 87 | if (!root->fs_info->closing) { |
86 | block_group->inode = igrab(inode); | 88 | block_group->inode = igrab(inode); |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 1ca3e68586cf..57a03f6eb224 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -2535,8 +2535,6 @@ static void btrfs_read_locked_inode(struct inode *inode) | |||
2535 | BTRFS_I(inode)->flags = btrfs_inode_flags(leaf, inode_item); | 2535 | BTRFS_I(inode)->flags = btrfs_inode_flags(leaf, inode_item); |
2536 | 2536 | ||
2537 | alloc_group_block = btrfs_inode_block_group(leaf, inode_item); | 2537 | alloc_group_block = btrfs_inode_block_group(leaf, inode_item); |
2538 | if (location.objectid == BTRFS_FREE_SPACE_OBJECTID) | ||
2539 | inode->i_mapping->flags &= ~__GFP_FS; | ||
2540 | 2538 | ||
2541 | /* | 2539 | /* |
2542 | * try to precache a NULL acl entry for files that don't have | 2540 | * try to precache a NULL acl entry for files that don't have |