diff options
author | Jan Kara <jack@suse.cz> | 2013-01-28 15:30:52 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-01-28 15:30:52 +0100 |
commit | 36ade451a5d736e61ac8302b64aacc5acb5e440f (patch) | |
tree | 4aab84ece1d56dac8fbd70377eb783ea138f35b1 /fs/ext4/page-io.c | |
parent | ext4: add punching hole support for non-extent-mapped files (diff) | |
download | linux-36ade451a5d736e61ac8302b64aacc5acb5e440f.tar.xz linux-36ade451a5d736e61ac8302b64aacc5acb5e440f.zip |
ext4: Always use ext4_bio_write_page() for writeout
Currently we sometimes used block_write_full_page() and sometimes
ext4_bio_write_page() for writeback (depending on mount options and call
path). Let's always use ext4_bio_write_page() to simplify things a bit.
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/page-io.c')
-rw-r--r-- | fs/ext4/page-io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index 0016fbca2a40..ddb3d401543c 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -73,8 +73,6 @@ void ext4_free_io_end(ext4_io_end_t *io) BUG_ON(!list_empty(&io->list)); BUG_ON(io->flag & EXT4_IO_END_UNWRITTEN); - if (io->page) - put_page(io->page); for (i = 0; i < io->num_io_pages; i++) put_io_page(io->pages[i]); io->num_io_pages = 0; |