diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-27 22:51:08 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-27 22:51:08 -0500 |
commit | c4d30967f3020cda9df9ee22af79cd1f2c284244 (patch) | |
tree | 744565daf8f1d711c0186c3261ebf42eebe1a44e /fs/9p/vfs_dentry.c | |
parent | 634095dab2a2001844fc8b26673c0cb14a766cdf (diff) | |
download | op-kernel-dev-c4d30967f3020cda9df9ee22af79cd1f2c284244.zip op-kernel-dev-c4d30967f3020cda9df9ee22af79cd1f2c284244.tar.gz |
9p: turn fid->dlist into hlist
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p/vfs_dentry.c')
-rw-r--r-- | fs/9p/vfs_dentry.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/9p/vfs_dentry.c b/fs/9p/vfs_dentry.c index 9ad6862..fcd4983 100644 --- a/fs/9p/vfs_dentry.c +++ b/fs/9p/vfs_dentry.c @@ -84,16 +84,13 @@ static int v9fs_cached_dentry_delete(const struct dentry *dentry) static void v9fs_dentry_release(struct dentry *dentry) { struct v9fs_dentry *dent; - struct p9_fid *temp, *current_fid; - p9_debug(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_name.name, dentry); dent = dentry->d_fsdata; if (dent) { - list_for_each_entry_safe(current_fid, temp, &dent->fidlist, - dlist) { - p9_client_clunk(current_fid); - } + struct hlist_node *p, *n; + hlist_for_each_safe(p, n, &dent->fidlist) + p9_client_clunk(hlist_entry(p, struct p9_fid, dlist)); kfree(dent); dentry->d_fsdata = NULL; |