diff options
Diffstat (limited to 'fs/nfsd/nfs4recover.c')
-rw-r--r-- | fs/nfsd/nfs4recover.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index bb40083b6b7d..53abb333732e 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c | |||
@@ -289,7 +289,9 @@ nfsd4_unlink_clid_dir(char *name, int namlen) | |||
289 | 289 | ||
290 | dprintk("NFSD: nfsd4_unlink_clid_dir. name %.*s\n", namlen, name); | 290 | dprintk("NFSD: nfsd4_unlink_clid_dir. name %.*s\n", namlen, name); |
291 | 291 | ||
292 | down(&rec_dir.dentry->d_inode->i_sem); | ||
292 | dentry = lookup_one_len(name, rec_dir.dentry, namlen); | 293 | dentry = lookup_one_len(name, rec_dir.dentry, namlen); |
294 | up(&rec_dir.dentry->d_inode->i_sem); | ||
293 | if (IS_ERR(dentry)) { | 295 | if (IS_ERR(dentry)) { |
294 | status = PTR_ERR(dentry); | 296 | status = PTR_ERR(dentry); |
295 | return status; | 297 | return status; |