Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243183
b: refs/heads/master
c: 1561ded
h: refs/heads/master
i:
  243181: df48691
  243179: dc1e51b
  243175: 5bf2545
  243167: a043ac2
v: v3
  • Loading branch information
Miao Xie authored and root committed Mar 28, 2011
1 parent ba81e7b commit 5e3f72e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c055e99eea6e4f614267632fac546e7896c0227b
refs/heads/master: 1561deda687eef0e95065f1268d680ddc5976ee7
2 changes: 2 additions & 0 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,8 @@ struct btrfs_root *open_ctree(struct super_block *sb,
goto fail_bdi;
}

fs_info->btree_inode->i_mapping->flags &= ~__GFP_FS;

INIT_RADIX_TREE(&fs_info->fs_roots_radix, GFP_ATOMIC);
INIT_LIST_HEAD(&fs_info->trans_list);
INIT_LIST_HEAD(&fs_info->dead_roots);
Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2536,6 +2536,8 @@ static void btrfs_read_locked_inode(struct inode *inode)
BTRFS_I(inode)->flags = btrfs_inode_flags(leaf, inode_item);

alloc_group_block = btrfs_inode_block_group(leaf, inode_item);
if (location.objectid == BTRFS_FREE_SPACE_OBJECTID)
inode->i_mapping->flags &= ~__GFP_FS;

/*
* try to precache a NULL acl entry for files that don't have
Expand Down Expand Up @@ -4084,7 +4086,6 @@ struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location,
BTRFS_I(inode)->root = root;
memcpy(&BTRFS_I(inode)->location, location, sizeof(*location));
btrfs_read_locked_inode(inode);

inode_tree_add(inode);
unlock_new_inode(inode);
if (new)
Expand Down

0 comments on commit 5e3f72e

Please sign in to comment.