All of lore.kernel.org
 help / color / mirror / Atom feed
* Avoid rec_len overflow with 64KB block size
@ 2007-09-20 14:32 Jan Kara
  2007-09-20 16:17 ` Jan Kara
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kara @ 2007-09-20 14:32 UTC (permalink / raw)
  To: linux-ext4; +Cc: Takashi Sato

   Hello,

  when converting ext4 directories to pagecache I just came over
Takashi's patch preventing overflowing of rec_len. Looking over the
patch - can't we do it more elegantly by using say 0xffff instead of 64K
and perform conversion (using some helper) at the moment we read / store
rec_len? That would be IMHO more transparent than current approach (at
least it took me some time to understand what's going on with the
current patch when I was looking at the code)...

								Honza

-- 
Jan Kara <jack@suse.cz>
SuSE CR Labs

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

end of thread, other threads:[~2007-09-21 13:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-20 14:32 Avoid rec_len overflow with 64KB block size Jan Kara
2007-09-20 16:17 ` Jan Kara
2007-09-20 18:18   ` Andreas Dilger
2007-09-21 13:38     ` Jan Kara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.