aboutsummaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 09bb80c479d8..9ece6c2086d0 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1813,7 +1813,9 @@ static int __block_prepare_write(struct inode *inode, struct page *page,
1813 unmap_underlying_metadata(bh->b_bdev, 1813 unmap_underlying_metadata(bh->b_bdev,
1814 bh->b_blocknr); 1814 bh->b_blocknr);
1815 if (PageUptodate(page)) { 1815 if (PageUptodate(page)) {
1816 clear_buffer_new(bh);
1816 set_buffer_uptodate(bh); 1817 set_buffer_uptodate(bh);
1818 mark_buffer_dirty(bh);
1817 continue; 1819 continue;
1818 } 1820 }
1819 if (block_end > to || block_start < from) { 1821 if (block_end > to || block_start < from) {