summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-08-23 07:27:38 +0000
committerkib <kib@FreeBSD.org>2016-08-23 07:27:38 +0000
commit189f21d92e8c84d1470bf4c6beab4d3f0661bc98 (patch)
tree3601dd1c8d3bcf1f7dbfb2e6781a8c9f811573f2 /sys/ufs
parent9a246ed817474c2b5b9a8eea786cda6f6725bd86 (diff)
downloadFreeBSD-src-189f21d92e8c84d1470bf4c6beab4d3f0661bc98.zip
FreeBSD-src-189f21d92e8c84d1470bf4c6beab4d3f0661bc98.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.
Diffstat (limited to 'sys/ufs')
-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