commit | 1d3382cbf02986e4833849f528d451367ea0b4cb | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sat Oct 23 15:19:20 2010 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Oct 25 21:24:15 2010 -0400 |
tree | b754f9903c0f77ce40dcff18030b49d0ce213eab | |
parent | a8dade34e3df581bc36ca2afe6e27055e178801c [diff] [blame] |
new helper: inode_unhashed() note: for race-free uses you inode_lock held Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/include/linux/fs.h b/include/linux/fs.h index c3f6daf..78043da 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h
@@ -786,6 +786,11 @@ void *i_private; /* fs or device private pointer */ }; +static inline int inode_unhashed(struct inode *inode) +{ + return hlist_unhashed(&inode->i_hash); +} + /* * inode->i_mutex nesting subclasses for the lock validator: *