diff options
-rw-r--r-- | fs/buffer.c | 1 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 86e58b1dcd9c..76403b1764c5 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -1730,7 +1730,6 @@ done: | |||
1730 | * The page and buffer_heads can be released at any time from | 1730 | * The page and buffer_heads can be released at any time from |
1731 | * here on. | 1731 | * here on. |
1732 | */ | 1732 | */ |
1733 | wbc->pages_skipped++; /* We didn't write this page */ | ||
1734 | } | 1733 | } |
1735 | return err; | 1734 | return err; |
1736 | 1735 | ||
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 354d68a32d4a..52bd08c0a278 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c | |||
@@ -402,10 +402,9 @@ xfs_start_page_writeback( | |||
402 | clear_page_dirty_for_io(page); | 402 | clear_page_dirty_for_io(page); |
403 | set_page_writeback(page); | 403 | set_page_writeback(page); |
404 | unlock_page(page); | 404 | unlock_page(page); |
405 | if (!buffers) { | 405 | /* If no buffers on the page are to be written, finish it here */ |
406 | if (!buffers) | ||
406 | end_page_writeback(page); | 407 | end_page_writeback(page); |
407 | wbc->pages_skipped++; /* We didn't write this page */ | ||
408 | } | ||
409 | } | 408 | } |
410 | 409 | ||
411 | static inline int bio_add_buffer(struct bio *bio, struct buffer_head *bh) | 410 | static inline int bio_add_buffer(struct bio *bio, struct buffer_head *bh) |