aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/buffer.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 1d0852fa728b..dcc5faa573ba 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1700,17 +1700,8 @@ done:
1700 * clean. Someone wrote them back by hand with 1700 * clean. Someone wrote them back by hand with
1701 * ll_rw_block/submit_bh. A rare case. 1701 * ll_rw_block/submit_bh. A rare case.
1702 */ 1702 */
1703 int uptodate = 1;
1704 do {
1705 if (!buffer_uptodate(bh)) {
1706 uptodate = 0;
1707 break;
1708 }
1709 bh = bh->b_this_page;
1710 } while (bh != head);
1711 if (uptodate)
1712 SetPageUptodate(page);
1713 end_page_writeback(page); 1703 end_page_writeback(page);
1704
1714 /* 1705 /*
1715 * The page and buffer_heads can be released at any time from 1706 * The page and buffer_heads can be released at any time from
1716 * here on. 1707 * here on.