summaryrefslogtreecommitdiff
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2013-06-04 21:19:34 +0400
committerTheodore Ts'o <tytso@mit.edu>2013-06-04 21:19:34 +0400
commit3613d22807a2616e9346800bacd88aa8bbbefcd7 (patch)
treea7e83b6ad87e3f4f9f9d271a1d253d9f9189b541 /fs/ext4/inode.c
parent4e7ea81db53465ddd753678bc4cebf95369d0984 (diff)
downloadlinux-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/inode.c')
-rw-r--r--fs/ext4/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 5939a4742def..736d164dc2ba 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2047,8 +2047,6 @@ static int mpage_map_and_submit_buffers(struct mpage_da_data *mpd)
clear_buffer_delay(bh);
bh->b_blocknr = pblock++;
}
- if (mpd->map.m_flags & EXT4_MAP_UNINIT)
- set_buffer_uninit(bh);
clear_buffer_unwritten(bh);
} while (++lblk < blocks &&
(bh = bh->b_this_page) != head);
@@ -2110,6 +2108,8 @@ static int mpage_map_one_extent(handle_t *handle, struct mpage_da_data *mpd)
err = ext4_map_blocks(handle, inode, map, get_blocks_flags);
if (err < 0)
return err;
+ if (map->m_flags & EXT4_MAP_UNINIT)
+ ext4_set_io_unwritten_flag(inode, mpd->io_submit.io_end);
BUG_ON(map->m_len == 0);
if (map->m_flags & EXT4_MAP_NEW) {