Skip to content

Commit

Permalink
nfsd: silence lockdep warning
Browse files Browse the repository at this point in the history
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
J. Bruce Fields committed May 11, 2009
1 parent 89996df commit 8daed1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/nfsd/nfs4recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ nfsd4_list_rec_dir(struct dentry *dir, recdir_func *f)
goto out;
status = vfs_readdir(filp, nfsd4_build_namelist, &names);
fput(filp);
mutex_lock(&dir->d_inode->i_mutex);
mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT);
while (!list_empty(&names)) {
entry = list_entry(names.next, struct name_list, list);

Expand Down Expand Up @@ -264,7 +264,7 @@ nfsd4_unlink_clid_dir(char *name, int namlen)

dprintk("NFSD: nfsd4_unlink_clid_dir. name %.*s\n", namlen, name);

mutex_lock(&rec_dir.dentry->d_inode->i_mutex);
mutex_lock_nested(&rec_dir.dentry->d_inode->i_mutex, I_MUTEX_PARENT);
dentry = lookup_one_len(name, rec_dir.dentry, namlen);
if (IS_ERR(dentry)) {
status = PTR_ERR(dentry);
Expand Down

0 comments on commit 8daed1e

Please sign in to comment.