nfs_write(): do not call ncl_pager_setsize() after clearing TDP2_SBPAGES

This might unnecessary truncate file undoing extension done by the write.

Reported by:	Yasuhiro Kimura <yasu@utahime.org>
Reviewed by:	rmacklem
Tested by:	rmacklem, Yasuhiro Kimura <yasu@utahime.org>
MFC after:	6 days
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2021-01-23 23:40:07 +02:00
parent ee0005f11f
commit bd01a69f48

View file

@ -1286,11 +1286,6 @@ again:
out:
curthread_pflags2_restore(save2);
if ((curthread->td_pflags2 & TDP2_SBPAGES) == 0) {
NFSLOCKNODE(np);
ncl_pager_setsize(vp, NULL);
}
return (error);
}