linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Possible bug with extent status tree
@ 2013-03-11 20:38 Jan Kara
  2013-03-12  3:53 ` Zheng Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kara @ 2013-03-11 20:38 UTC (permalink / raw)
  To: Zheng Liu; +Cc: Ted Tso, linux-ext4

  Hello,

  while looking into the ext4 code I spotted one thing which I think is a
bug introduced by extent status tree code. The problem is that
ext4_map_blocks() checks extent status tree and if the extent is found, it
doesn't call into ext4_ext_map_blocks(). However ext4_ext_direct_IO() expects
that if the extent DIO is done to is unwritten, EXT4_IO_END_UNWRITTEN flag
gets set in the io_end (or inode) flags and that happens only in
ext4_ext_map_blocks().

The easiest fix seems to be to move setting of flags from
ext4_ext_map_blocks() up into ext4_map_blocks() (or maybe even
_ext4_get_block()). What do you think?

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-12  9:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-11 20:38 Possible bug with extent status tree Jan Kara
2013-03-12  3:53 ` Zheng Liu
2013-03-12  9:32   ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).