diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-02-06 01:37:07 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 10:41:04 -0800 |
commit | e8462caa915d4d12846db7aae2557b6db7c054d5 (patch) | |
tree | 4bb2e4b66e5d0d6ee9e3059acd94212cdef6443a /fs | |
parent | 07a154b2bb9b528a39ddc777399482c1fa27fdb8 (diff) | |
download | lwn-e8462caa915d4d12846db7aae2557b6db7c054d5.tar.gz lwn-e8462caa915d4d12846db7aae2557b6db7c054d5.zip |
fs: use hlist_unhashed
Use hlist_unhashed() instead of opencoded equivalent.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/dcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index d9ca1e5ceb92..1c323dd92fb2 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -89,7 +89,7 @@ static void d_free(struct dentry *dentry) if (dentry->d_op && dentry->d_op->d_release) dentry->d_op->d_release(dentry); /* if dentry was never inserted into hash, immediate free is OK */ - if (dentry->d_hash.pprev == NULL) + if (hlist_unhashed(&dentry->d_hash)) __d_free(dentry); else call_rcu(&dentry->d_u.d_rcu, d_callback); |