Date: Tue, 20 Jan 2009 11:30:22 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/ufs/ffs ffs_inode.c ffs_vnops.c Message-ID: <200901201130.n0KBURWO058481@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2009-01-20 11:30:22 UTC FreeBSD src repository Modified files: sys/ufs/ffs ffs_inode.c ffs_vnops.c Log: SVN rev 187468 on 2009-01-20 11:30:22Z by kib When extending inode size, we call vnode_pager_setsize(), to have a address space where to put vnode pages, and then call UFS_BALLOC(), to actually allocate new block and map it. When UFS_BALLOC() returns error, sometimes we forget to revert the vm object size increase, allowing for the pages that are not backed by the logical disk blocks. Revert vnode_pager_setsize() back when UFS_BALLOC() failed, for ffs_truncate() and ffs_write(). PR: 129956 Reviewed by: ups MFC after: 3 weeks Revision Changes Path 1.115 +3 -1 src/sys/ufs/ffs/ffs_inode.c 1.185 +3 -1 src/sys/ufs/ffs/ffs_vnops.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901201130.n0KBURWO058481>