diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-28 04:51:08 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-28 04:51:08 +0100 |
commit | c4d30967f3020cda9df9ee22af79cd1f2c284244 (patch) | |
tree | 744565daf8f1d711c0186c3261ebf42eebe1a44e /fs/9p/vfs_dentry.c | |
parent | 9p: don't bother with private lock in ->d_fsdata; dentry->d_lock will do just... (diff) | |
download | linux-c4d30967f3020cda9df9ee22af79cd1f2c284244.tar.xz linux-c4d30967f3020cda9df9ee22af79cd1f2c284244.zip |
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 9ad68628522c..fcd49833ef80 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; |