Commit 7cb1a5351da8ac499d965a78e94c79ad27891f43
Committed by
Theodore Ts'o
1 parent
ed3ce80a52
Exists in
master
and in
39 other branches
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
fs/ext4/inode.c
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); |