new helper: inode_unhashed()
note: for race-free uses you inode_lock held Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -422,7 +422,7 @@ int reiserfs_commit_write(struct file *f, struct page *page,
|
||||
static void update_ctime(struct inode *inode)
|
||||
{
|
||||
struct timespec now = current_fs_time(inode->i_sb);
|
||||
if (hlist_unhashed(&inode->i_hash) || !inode->i_nlink ||
|
||||
if (inode_unhashed(inode) || !inode->i_nlink ||
|
||||
timespec_equal(&inode->i_ctime, &now))
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user