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>
This commit is contained in:
@@ -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. */
|
||||
|
Reference in New Issue
Block a user