Date: Tue, 10 Feb 2009 17:43:47 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern vfs_subr.c src/sys/ufs/ffs ffs_inode.c Message-ID: <200902101744.n1AHiOLN041080@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2009-02-10 17:43:47 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/kern vfs_subr.c sys/ufs/ffs ffs_inode.c Log: SVN rev 188441 on 2009-02-10 17:43:47Z by kib MFC r187467: Change vinvalbuf() to not remove any pages from the object when V_NORMAL or V_ALT are specified. Instead, the only in-tree caller in ffs_inode.c:ffs_truncate() that specifies V_ALT explicitely removes the corresponding page range. The V_NORMAL caller does vnode_pager_setsize(vp, 0) immediately after the call to vinvalbuf(V_NORMAL) already. MFC r187490: The r187467 should remove all pages for V_NORMAL case too, because indirect block pages are not removed by the mentioned invocation of the vnode_pager_setsize(). Put a common code into the helper function ffs_pages_remove(). Revision Changes Path 1.707.2.11 +1 -1 src/sys/kern/vfs_subr.c 1.108.2.3 +18 -0 src/sys/ufs/ffs/ffs_inode.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902101744.n1AHiOLN041080>