diff options
author | Jan Kara <jack@suse.cz> | 2013-06-04 17:19:34 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-06-04 17:19:34 (GMT) |
commit | 3613d22807a2616e9346800bacd88aa8bbbefcd7 (patch) | |
tree | a7e83b6ad87e3f4f9f9d271a1d253d9f9189b541 /fs/ext4/page-io.c | |
parent | 4e7ea81db53465ddd753678bc4cebf95369d0984 (diff) | |
download | linux-3613d22807a2616e9346800bacd88aa8bbbefcd7.tar.xz |
ext4: remove buffer_uninit handling
There isn't any need for setting BH_Uninit on buffers anymore. It was
only used to signal we need to mark io_end as needing extent
conversion in add_bh_to_extent() but now we can mark the io_end
directly when mapping extent.
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 | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index 3e58546..de6860c 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -369,7 +369,6 @@ static int io_submit_add_bh(struct ext4_io_submit *io, struct inode *inode, struct buffer_head *bh) { - ext4_io_end_t *io_end; int ret; if (io->io_bio && bh->b_blocknr != io->io_next_block) { @@ -384,9 +383,6 @@ submit_and_retry: ret = bio_add_page(io->io_bio, bh->b_page, bh->b_size, bh_offset(bh)); if (ret != bh->b_size) goto submit_and_retry; - io_end = io->io_end; - if (test_clear_buffer_uninit(bh)) - ext4_set_io_unwritten_flag(inode, io_end); io->io_next_block++; return 0; } |