diff options
author | Liu Bo <liubo2009@cn.fujitsu.com> | 2012-07-10 05:28:39 -0600 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-07-23 16:28:00 -0400 |
commit | 83eea1f1bacd5dc7b44dcf84f5fdca54fdea5453 (patch) | |
tree | 6c4e2d70ece25c180c092aa4a8d69a71e73a55c6 /fs/btrfs/file-item.c | |
parent | 51a8cf9d2d97017d334f33f1b39067bd2f03bc49 (diff) | |
download | linux-83eea1f1bacd5dc7b44dcf84f5fdca54fdea5453.tar.gz linux-83eea1f1bacd5dc7b44dcf84f5fdca54fdea5453.tar.bz2 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; } |