Unverified Commit a0db09dd authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 60f7b7ea 5b47629b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -448,6 +448,10 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap,
			.ia_size	= iap->ia_size,
		};

		host_err = -EFBIG;
		if (iap->ia_size < 0)
			goto out_unlock;

		host_err = notify_change(dentry, &size_attr, NULL);
		if (host_err)
			goto out_unlock;