diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-23 19:23:40 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-26 01:24:15 (GMT) |
commit | 756acc2d61712a8cafe2aa6ad626c60a185d3645 (patch) | |
tree | 72473307f7789b2dafa4b7ca2facc6427f83a283 /fs/jfs | |
parent | 1d3382cbf02986e4833849f528d451367ea0b4cb (diff) | |
download | linux-fsl-qoriq-756acc2d61712a8cafe2aa6ad626c60a185d3645.tar.xz |
list.h: new helper - hlist_add_fake()
Make node look as if it was on hlist, with hlist_del()
working correctly. Usable without any locking...
Convert a couple of places where we want to do that to
inode->i_hash.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/jfs')
-rw-r--r-- | fs/jfs/jfs_imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/jfs_imap.c b/fs/jfs/jfs_imap.c index f8332dc..3a09423 100644 --- a/fs/jfs/jfs_imap.c +++ b/fs/jfs/jfs_imap.c @@ -497,7 +497,7 @@ struct inode *diReadSpecial(struct super_block *sb, ino_t inum, int secondary) * appear hashed, but do not put on any lists. hlist_del() * will work fine and require no locking. */ - ip->i_hash.pprev = &ip->i_hash.next; + hlist_add_fake(&ip->i_hash); return (ip); } |