Author: kib
Date: Tue Aug 23 07:53:09 2016
New Revision: 304669
URL: https://svnweb.freebsd.org/changeset/base/304669

Log:
  MFC r304229:
  When looking up dandling buffers for unwing after failing block
  allocation in UFS_BALLOC(), there is no need to map them.

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

Modified: stable/10/sys/ufs/ffs/ffs_balloc.c
==============================================================================
--- stable/10/sys/ufs/ffs/ffs_balloc.c  Tue Aug 23 07:52:07 2016        
(r304668)
+++ stable/10/sys/ufs/ffs/ffs_balloc.c  Tue Aug 23 07:53:09 2016        
(r304669)
@@ -484,7 +484,8 @@ fail:
                 * We shall not leave the freed blocks on the vnode
                 * buffer object lists.
                 */
-               bp = getblk(vp, *lbns_remfree, fs->fs_bsize, 0, 0, GB_NOCREAT);
+               bp = getblk(vp, *lbns_remfree, fs->fs_bsize, 0, 0,
+                   GB_NOCREAT | GB_UNMAPPED);
                if (bp != NULL) {
                        bp->b_flags |= (B_INVAL | B_RELBUF);
                        bp->b_flags &= ~B_ASYNC;
@@ -1061,7 +1062,8 @@ fail:
                 * We shall not leave the freed blocks on the vnode
                 * buffer object lists.
                 */
-               bp = getblk(vp, *lbns_remfree, fs->fs_bsize, 0, 0, GB_NOCREAT);
+               bp = getblk(vp, *lbns_remfree, fs->fs_bsize, 0, 0,
+                   GB_NOCREAT | GB_UNMAPPED);
                if (bp != NULL) {
                        bp->b_flags |= (B_INVAL | B_RELBUF);
                        bp->b_flags &= ~B_ASYNC;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to