summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-08-23 07:53:09 +0000
committerkib <kib@FreeBSD.org>2016-08-23 07:53:09 +0000
commiteea6f607460ea29f280bd8da2a68ae587a599730 (patch)
tree6a75595305e156ee76afefb023ef7e5cf491c9a3
parenta2c629a62ec22204dc3ca4622158fd5d4ca1b856 (diff)
downloadFreeBSD-src-eea6f607460ea29f280bd8da2a68ae587a599730.zip
FreeBSD-src-eea6f607460ea29f280bd8da2a68ae587a599730.tar.gz
MFC r304229:
When looking up dandling buffers for unwing after failing block allocation in UFS_BALLOC(), there is no need to map them.
-rw-r--r--sys/ufs/ffs/ffs_balloc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c
index e118832..79df83d 100644
--- a/sys/ufs/ffs/ffs_balloc.c
+++ b/sys/ufs/ffs/ffs_balloc.c
@@ -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;
OpenPOWER on IntegriCloud