svn commit: r304673 - stable/9/sys/ufs/ffs

Konstantin Belousov kib at FreeBSD.org
Tue Aug 23 08:13:10 UTC 2016


Author: kib
Date: Tue Aug 23 08:13:08 2016
New Revision: 304673
URL: https://svnweb.freebsd.org/changeset/base/304673

Log:
  MFC r304232:
  In UFS_BALLOC(), invalidate pages of indirect buffers on failed block
  allocation unwinding.

Modified:
  stable/9/sys/ufs/ffs/ffs_balloc.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/sys/   (props changed)

Modified: stable/9/sys/ufs/ffs/ffs_balloc.c
==============================================================================
--- stable/9/sys/ufs/ffs/ffs_balloc.c	Tue Aug 23 07:55:32 2016	(r304672)
+++ stable/9/sys/ufs/ffs/ffs_balloc.c	Tue Aug 23 08:13:08 2016	(r304673)
@@ -478,8 +478,8 @@ fail:
 		 */
 		bp = getblk(vp, *lbns_remfree, fs->fs_bsize, 0, 0, GB_NOCREAT);
 		if (bp != NULL) {
-			bp->b_flags |= (B_INVAL | B_RELBUF);
-			bp->b_flags &= ~B_ASYNC;
+			bp->b_flags |= B_INVAL | B_RELBUF | B_NOCACHE;
+			bp->b_flags &= ~(B_ASYNC | B_CACHE);
 			brelse(bp);
 		}
 		deallocated += fs->fs_bsize;
@@ -1047,8 +1047,8 @@ fail:
 		 */
 		bp = getblk(vp, *lbns_remfree, fs->fs_bsize, 0, 0, GB_NOCREAT);
 		if (bp != NULL) {
-			bp->b_flags |= (B_INVAL | B_RELBUF);
-			bp->b_flags &= ~B_ASYNC;
+			bp->b_flags |= B_INVAL | B_RELBUF | B_NOCACHE;
+			bp->b_flags &= ~(B_ASYNC | B_CACHE);
 			brelse(bp);
 		}
 		deallocated += fs->fs_bsize;


More information about the svn-src-stable-9 mailing list