summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorAl Viro2010-10-23 21:19:20 +0200
committerAl Viro2010-10-26 03:24:15 +0200
commit1d3382cbf02986e4833849f528d451367ea0b4cb (patch)
treeb754f9903c0f77ce40dcff18030b49d0ce213eab /fs/btrfs/inode.c
parentunexport invalidate_inodes (diff)
downloadkernel-qcow2-linux-1d3382cbf02986e4833849f528d451367ea0b4cb.tar.gz
kernel-qcow2-linux-1d3382cbf02986e4833849f528d451367ea0b4cb.tar.xz
kernel-qcow2-linux-1d3382cbf02986e4833849f528d451367ea0b4cb.zip
new helper: inode_unhashed()
note: for race-free uses you inode_lock held Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index c03864406af3..f6f2a0da2695 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -3849,7 +3849,7 @@ again:
p = &root->inode_tree.rb_node;
parent = NULL;
- if (hlist_unhashed(&inode->i_hash))
+ if (inode_unhashed(inode))
return;
spin_lock(&root->inode_lock);