Commit 9978a575 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] d_bucket initialisation simplification

The recent nfsd fix was too fancy.  When initialising d_bucket to an "invalid"
value, all we need is a NULL in there.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d3751527
...@@ -851,7 +851,7 @@ struct dentry * d_alloc_anon(struct inode *inode) ...@@ -851,7 +851,7 @@ struct dentry * d_alloc_anon(struct inode *inode)
* Set d_bucket to an "impossible" bucket address so * Set d_bucket to an "impossible" bucket address so
* that d_move() doesn't get a false positive * that d_move() doesn't get a false positive
*/ */
res->d_bucket = dentry_hashtable + D_HASHMASK + 1; res->d_bucket = NULL;
res->d_flags |= DCACHE_DISCONNECTED; res->d_flags |= DCACHE_DISCONNECTED;
res->d_flags &= ~DCACHE_UNHASHED; res->d_flags &= ~DCACHE_UNHASHED;
list_add(&res->d_alias, &inode->i_dentry); list_add(&res->d_alias, &inode->i_dentry);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment