diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2011-05-18 13:53:20 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-05-18 13:53:20 -0400 |
commit | 7cb1a5351da8ac499d965a78e94c79ad27891f43 (patch) | |
tree | b78e2ff5d432f14e2840e8911654789b656b26db /fs/ext4/inode.c | |
parent | ed3ce80a52c4658f48ef8fc825bdedf8b3fcaa89 (diff) |
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>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 3424e82392a..f6caaac8373 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -2796,9 +2796,7 @@ static int write_cache_pages_da(struct address_space *mapping, continue; } - if (PageWriteback(page)) - wait_on_page_writeback(page); - + wait_on_page_writeback(page); BUG_ON(PageWriteback(page)); if (mpd->next_page != page->index) |