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/dcache.c | |
parent | 07a154b2bb9b528a39ddc777399482c1fa27fdb8 (diff) |
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/dcache.c')
-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 d9ca1e5ceb9..1c323dd92fb 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); |