mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
ee0005f11f
commit
bd01a69f48
1 changed files with 0 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue