diff options
Diffstat (limited to 'fs/nfsd/nfs4recover.c')
-rw-r--r-- | fs/nfsd/nfs4recover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index cc6a76072009..1c307f02baa8 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c | |||
@@ -583,7 +583,7 @@ nfs4_reset_recoverydir(char *recdir) | |||
583 | if (status) | 583 | if (status) |
584 | return status; | 584 | return status; |
585 | status = -ENOTDIR; | 585 | status = -ENOTDIR; |
586 | if (S_ISDIR(path.dentry->d_inode->i_mode)) { | 586 | if (d_is_dir(path.dentry)) { |
587 | strcpy(user_recovery_dirname, recdir); | 587 | strcpy(user_recovery_dirname, recdir); |
588 | status = 0; | 588 | status = 0; |
589 | } | 589 | } |
@@ -1426,7 +1426,7 @@ nfsd4_client_tracking_init(struct net *net) | |||
1426 | nn->client_tracking_ops = &nfsd4_legacy_tracking_ops; | 1426 | nn->client_tracking_ops = &nfsd4_legacy_tracking_ops; |
1427 | status = kern_path(nfs4_recoverydir(), LOOKUP_FOLLOW, &path); | 1427 | status = kern_path(nfs4_recoverydir(), LOOKUP_FOLLOW, &path); |
1428 | if (!status) { | 1428 | if (!status) { |
1429 | status = S_ISDIR(path.dentry->d_inode->i_mode); | 1429 | status = d_is_dir(path.dentry); |
1430 | path_put(&path); | 1430 | path_put(&path); |
1431 | if (status) | 1431 | if (status) |
1432 | goto do_init; | 1432 | goto do_init; |