]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Fix 64KB blocksize in ext3 directories
authorJan Kara <jack@suse.cz>
Thu, 15 Nov 2007 01:00:19 +0000 (17:00 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 15 Nov 2007 02:45:43 +0000 (18:45 -0800)
commit7c06a8dc64a2d1884bd19b4c6353d9267ae4e3e1
tree67afad25e4de3139d3b993e22327096c3e015013
parentdbaf4c024a657175f43b5091c4fab8b9f0e17078
Fix 64KB blocksize in ext3 directories

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 ext3_next_entry() when we are changing them anyway.

[akpm@linux-foundation.org: coding-style cleanups]
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext3/dir.c
fs/ext3/namei.c
include/linux/ext3_fs.h