|
@@ -740,8 +740,7 @@ map_buffer_cached:
|
|
set_buffer_uptodate(bh);
|
|
set_buffer_uptodate(bh);
|
|
if (unlikely(was_hole)) {
|
|
if (unlikely(was_hole)) {
|
|
/* We allocated the buffer. */
|
|
/* We allocated the buffer. */
|
|
- unmap_underlying_metadata(bh->b_bdev,
|
|
|
|
- bh->b_blocknr);
|
|
|
|
|
|
+ clean_bdev_bh_alias(bh);
|
|
if (bh_end <= pos || bh_pos >= end)
|
|
if (bh_end <= pos || bh_pos >= end)
|
|
mark_buffer_dirty(bh);
|
|
mark_buffer_dirty(bh);
|
|
else
|
|
else
|
|
@@ -784,7 +783,7 @@ map_buffer_cached:
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
/* We allocated the buffer. */
|
|
/* We allocated the buffer. */
|
|
- unmap_underlying_metadata(bh->b_bdev, bh->b_blocknr);
|
|
|
|
|
|
+ clean_bdev_bh_alias(bh);
|
|
/*
|
|
/*
|
|
* If the buffer is fully outside the write, zero it,
|
|
* If the buffer is fully outside the write, zero it,
|
|
* set it uptodate, and mark it dirty so it gets
|
|
* set it uptodate, and mark it dirty so it gets
|