fs: change d_hash for rcu-walk

Change d_hash so it may be called from lock-free RCU lookups. See similar
patch for d_compare for details.

For in-tree filesystems, this is just a mechanical change.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
Esse commit está contido em:
Nick Piggin
2011-01-07 17:49:28 +11:00
commit b1e6a015a5
25 arquivos alterados com 94 adições e 51 exclusões

Ver arquivo

@@ -27,7 +27,8 @@ static int add_nondir(struct dentry *dentry, struct inode *inode)
return err;
}
static int sysv_hash(struct dentry *dentry, struct qstr *qstr)
static int sysv_hash(const struct dentry *dentry, const struct inode *inode,
struct qstr *qstr)
{
/* Truncate the name in place, avoids having to define a compare
function. */