]> err.no Git - linux-2.6/commit
ext4: Avoid rec_len overflow with 64KB block size
authorJan Kara <jack@suse.cz>
Tue, 29 Jan 2008 04:58:27 +0000 (23:58 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 29 Jan 2008 04:58:27 +0000 (23:58 -0500)
commita72d7f834e1afa08421938d7eb06bd8e56b0e58c
tree21c6fbbf4187fa8ba56878ea2d5e576e123e1f95
parentafc7cbca5bfd556c3e12d3acefbee5ab0cbd4670
ext4: Avoid rec_len overflow with 64KB block size

With 64KB blocksize, a directory entry can have size 64KB which does not fit
into 16 bits we have for entry lenght. So we store 0xffff instead and convert
value when read from / written to disk. The patch also converts some places
to use ext4_next_entry() when we are changing them anyway.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
fs/ext4/dir.c
fs/ext4/namei.c
include/linux/ext4_fs.h