Merge tag 'nfsd-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
[linux-2.6-block.git] / fs / nfsd / vfs.c
index 2e41eb4c3cec76f00227f5f689bda39430a90b04..29b1f3613800a360cc126d2f8a5803824c3eab8b 100644 (file)
@@ -1422,7 +1422,7 @@ nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
         * Callers expect new file metadata to be committed even
         * if the attributes have not changed.
         */
-       if (iap->ia_valid)
+       if (nfsd_attrs_valid(attrs))
                status = nfsd_setattr(rqstp, resfhp, attrs, NULL);
        else
                status = nfserrno(commit_metadata(resfhp));