udf: fix adding entry to a directory
authorJan Kara <jack@suse.cz>
Fri, 8 Feb 2008 12:20:51 +0000 (04:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:36 +0000 (09:22 -0800)
commit05343c4f2ee1a4f81f287d95b28c80ee565817c4
tree09077c4f6d970e5af6c9da36910fd4fc056fa33f
parentaf793295bf9ee92660f5e77d337b0493cea3f9b9
udf: fix adding entry to a directory

When adding directory entry to a directory, we have to properly increase
length of the last extent.  Handle this similarly as extending regular files -
make extents always have size multiple of block size (it will be truncated
down to proper size in udf_clear_inode()).

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/udf/inode.c
fs/udf/namei.c