diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-23 21:40:07 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-24 23:02:03 +0000 |
commit | bd01a69f4836994b50b492883fb5367db41fb506 (patch) | |
tree | d85f6c08f0ffd818f6eb608bfbd157e75e6babf4 | |
parent | ee0005f11f2b38a714bc66b7d79832108f6fee77 (diff) |
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
-rw-r--r-- | sys/fs/nfsclient/nfs_clbio.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/fs/nfsclient/nfs_clbio.c b/sys/fs/nfsclient/nfs_clbio.c index 7d0ff0abff3d..832b44b99c8d 100644 --- a/sys/fs/nfsclient/nfs_clbio.c +++ b/sys/fs/nfsclient/nfs_clbio.c @@ -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); } |