diff options
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index f4ef0b745a53..7733e2943367 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -2580,6 +2580,8 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode, | |||
2580 | */ | 2580 | */ |
2581 | if (allocated > max_blocks) | 2581 | if (allocated > max_blocks) |
2582 | allocated = max_blocks; | 2582 | allocated = max_blocks; |
2583 | /* mark the buffer unwritten */ | ||
2584 | __set_bit(BH_Unwritten, &bh_result->b_state); | ||
2583 | goto out2; | 2585 | goto out2; |
2584 | } | 2586 | } |
2585 | 2587 | ||