diff options
author | Liu Bo <liubo2009@cn.fujitsu.com> | 2012-07-10 13:28:39 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-07-23 22:28:00 +0200 |
commit | 83eea1f1bacd5dc7b44dcf84f5fdca54fdea5453 (patch) | |
tree | 6c4e2d70ece25c180c092aa4a8d69a71e73a55c6 /fs/btrfs/file-item.c | |
parent | Btrfs: fix btrfs_is_free_space_inode to recognize btree inode (diff) | |
download | linux-83eea1f1bacd5dc7b44dcf84f5fdca54fdea5453.tar.xz linux-83eea1f1bacd5dc7b44dcf84f5fdca54fdea5453.zip |
Btrfs: kill root from btrfs_is_free_space_inode
Since root can be fetched via BTRFS_I macro directly, we can save an args
for btrfs_is_free_space_inode().
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r-- | fs/btrfs/file-item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index 863c34d111b5..b45b9de0c21d 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c @@ -183,7 +183,7 @@ static int __btrfs_lookup_bio_sums(struct btrfs_root *root, * read from the commit root and sidestep a nasty deadlock * between reading the free space cache and updating the csum tree. */ - if (btrfs_is_free_space_inode(root, inode)) { + if (btrfs_is_free_space_inode(inode)) { path->search_commit_root = 1; path->skip_locking = 1; } |