]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e48f33cf9d6c9117f9decca6ae0d2818ec0ca3c
tree09077c4f6d970e5af6c9da36910fd4fc056fa33f
parent87400153162183516f939136b81c4b9c344af736
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