diff options
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 382c1fd05b4c..33017d652b1d 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -2301,7 +2301,7 @@ static int get_parent_attributes(struct svc_export *exp, struct kstat *stat) | |||
2301 | if (path.dentry != path.mnt->mnt_root) | 2301 | if (path.dentry != path.mnt->mnt_root) |
2302 | break; | 2302 | break; |
2303 | } | 2303 | } |
2304 | err = vfs_getattr(&path, stat); | 2304 | err = vfs_getattr(&path, stat, STATX_BASIC_STATS, AT_STATX_SYNC_AS_STAT); |
2305 | path_put(&path); | 2305 | path_put(&path); |
2306 | return err; | 2306 | return err; |
2307 | } | 2307 | } |
@@ -2385,7 +2385,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp, | |||
2385 | goto out; | 2385 | goto out; |
2386 | } | 2386 | } |
2387 | 2387 | ||
2388 | err = vfs_getattr(&path, &stat); | 2388 | err = vfs_getattr(&path, &stat, STATX_BASIC_STATS, AT_STATX_SYNC_AS_STAT); |
2389 | if (err) | 2389 | if (err) |
2390 | goto out_nfserr; | 2390 | goto out_nfserr; |
2391 | if ((bmval0 & (FATTR4_WORD0_FILES_AVAIL | FATTR4_WORD0_FILES_FREE | | 2391 | if ((bmval0 & (FATTR4_WORD0_FILES_AVAIL | FATTR4_WORD0_FILES_FREE | |