Date: Tue, 03 Sep 2019 14:07:27 -0000 From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r346608 - projects/fuse2/sys/vm Message-ID: <201904232226.x3NMQtHG066125@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: asomers Date: Tue Apr 23 22:26:55 2019 New Revision: 346608 URL: https://svnweb.freebsd.org/changeset/base/346608 Log: Slightly simplify vnode_pager_setsize No functional change intended. Sponsored by: The FreeBSD Foundation Modified: projects/fuse2/sys/vm/vnode_pager.c Modified: projects/fuse2/sys/vm/vnode_pager.c ============================================================================== --- projects/fuse2/sys/vm/vnode_pager.c Tue Apr 23 22:25:50 2019 (r346607) +++ projects/fuse2/sys/vm/vnode_pager.c Tue Apr 23 22:26:55 2019 (r346608) @@ -452,8 +452,7 @@ vnode_pager_setsize(struct vnode *vp, vm_ooffset_t nsi * File has shrunk. Toss any cached pages beyond the new EOF. */ if (nobjsize < object->size) - vm_object_page_remove(object, nobjsize, object->size, - 0); + vm_object_page_remove(object, nobjsize, 0, 0); /* * this gets rid of garbage at the end of a page that is now * only partially backed by the vnode.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904232226.x3NMQtHG066125>