diff options
Diffstat (limited to 'fs/nfs/nfs3xdr.c')
-rw-r--r-- | fs/nfs/nfs3xdr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/nfs3xdr.c b/fs/nfs/nfs3xdr.c index 01e53e94f53d..ee284c2b2757 100644 --- a/fs/nfs/nfs3xdr.c +++ b/fs/nfs/nfs3xdr.c | |||
@@ -675,6 +675,7 @@ static int decode_fattr3(struct xdr_stream *xdr, struct nfs_fattr *fattr) | |||
675 | p = xdr_decode_nfstime3(p, &fattr->atime); | 675 | p = xdr_decode_nfstime3(p, &fattr->atime); |
676 | p = xdr_decode_nfstime3(p, &fattr->mtime); | 676 | p = xdr_decode_nfstime3(p, &fattr->mtime); |
677 | xdr_decode_nfstime3(p, &fattr->ctime); | 677 | xdr_decode_nfstime3(p, &fattr->ctime); |
678 | fattr->change_attr = nfs_timespec_to_change_attr(&fattr->ctime); | ||
678 | 679 | ||
679 | fattr->valid |= NFS_ATTR_FATTR_V3; | 680 | fattr->valid |= NFS_ATTR_FATTR_V3; |
680 | return 0; | 681 | return 0; |
@@ -725,12 +726,14 @@ static int decode_wcc_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr) | |||
725 | goto out_overflow; | 726 | goto out_overflow; |
726 | 727 | ||
727 | fattr->valid |= NFS_ATTR_FATTR_PRESIZE | 728 | fattr->valid |= NFS_ATTR_FATTR_PRESIZE |
729 | | NFS_ATTR_FATTR_PRECHANGE | ||
728 | | NFS_ATTR_FATTR_PREMTIME | 730 | | NFS_ATTR_FATTR_PREMTIME |
729 | | NFS_ATTR_FATTR_PRECTIME; | 731 | | NFS_ATTR_FATTR_PRECTIME; |
730 | 732 | ||
731 | p = xdr_decode_size3(p, &fattr->pre_size); | 733 | p = xdr_decode_size3(p, &fattr->pre_size); |
732 | p = xdr_decode_nfstime3(p, &fattr->pre_mtime); | 734 | p = xdr_decode_nfstime3(p, &fattr->pre_mtime); |
733 | xdr_decode_nfstime3(p, &fattr->pre_ctime); | 735 | xdr_decode_nfstime3(p, &fattr->pre_ctime); |
736 | fattr->pre_change_attr = nfs_timespec_to_change_attr(&fattr->pre_ctime); | ||
734 | 737 | ||
735 | return 0; | 738 | return 0; |
736 | out_overflow: | 739 | out_overflow: |