]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfs_write(): do not call ncl_pager_setsize() after clearing TDP2_SBPAGES
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 23 Jan 2021 21:40:07 +0000 (23:40 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Sun, 24 Jan 2021 23:02:03 +0000 (01:02 +0200)
commitbd01a69f4836994b50b492883fb5367db41fb506
treed85f6c08f0ffd818f6eb608bfbd157e75e6babf4
parentee0005f11f2b38a714bc66b7d79832108f6fee77
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
sys/fs/nfsclient/nfs_clbio.c