Commit 7cb1a5351da8ac499d965a78e94c79ad27891f43

Authored by Darrick J. Wong
Committed by Theodore Ts'o
1 parent ed3ce80a52

ext4: clean up some wait_on_page_writeback calls

wait_on_page_writeback already checks the writeback bit, so callers of it
needn't do that test.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

Showing 2 changed files with 2 additions and 5 deletions Side-by-side Diff

... ... @@ -2796,9 +2796,7 @@
2796 2796 continue;
2797 2797 }
2798 2798  
2799   - if (PageWriteback(page))
2800   - wait_on_page_writeback(page);
2801   -
  2799 + wait_on_page_writeback(page);
2802 2800 BUG_ON(PageWriteback(page));
2803 2801  
2804 2802 if (mpd->next_page != page->index)
fs/ext4/move_extent.c
... ... @@ -876,8 +876,7 @@
876 876 * It needs to call wait_on_page_writeback() to wait for the
877 877 * writeback of the page.
878 878 */
879   - if (PageWriteback(page))
880   - wait_on_page_writeback(page);
  879 + wait_on_page_writeback(page);
881 880  
882 881 /* Release old bh and drop refs */
883 882 try_to_release_page(page, 0);