diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-23 15:19:20 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-25 21:24:15 -0400 |
commit | 1d3382cbf02986e4833849f528d451367ea0b4cb (patch) | |
tree | b754f9903c0f77ce40dcff18030b49d0ce213eab /fs/fs-writeback.c | |
parent | a8dade34e3df581bc36ca2afe6e27055e178801c (diff) |
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/fs-writeback.c')
-rw-r--r-- | fs/fs-writeback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 29e3f409bbd0..39f44f2e709a 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c | |||
@@ -962,7 +962,7 @@ void __mark_inode_dirty(struct inode *inode, int flags) | |||
962 | * dirty list. Add blockdev inodes as well. | 962 | * dirty list. Add blockdev inodes as well. |
963 | */ | 963 | */ |
964 | if (!S_ISBLK(inode->i_mode)) { | 964 | if (!S_ISBLK(inode->i_mode)) { |
965 | if (hlist_unhashed(&inode->i_hash)) | 965 | if (inode_unhashed(inode)) |
966 | goto out; | 966 | goto out; |
967 | } | 967 | } |
968 | if (inode->i_state & I_FREEING) | 968 | if (inode->i_state & I_FREEING) |