aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/inode.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2008-02-08 07:20:51 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 12:22:36 -0500
commit05343c4f2ee1a4f81f287d95b28c80ee565817c4 (patch)
tree09077c4f6d970e5af6c9da36910fd4fc056fa33f /fs/udf/inode.c
parentaf793295bf9ee92660f5e77d337b0493cea3f9b9 (diff)
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>
Diffstat (limited to 'fs/udf/inode.c')
-rw-r--r--fs/udf/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index f792681f2f73..24cfa55d0fdc 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -289,7 +289,7 @@ struct buffer_head *udf_expand_dir_adinicb(struct inode *inode, int *block,
289 eloc.logicalBlockNum = *block; 289 eloc.logicalBlockNum = *block;
290 eloc.partitionReferenceNum = 290 eloc.partitionReferenceNum =
291 iinfo->i_location.partitionReferenceNum; 291 iinfo->i_location.partitionReferenceNum;
292 elen = inode->i_size; 292 elen = inode->i_sb->s_blocksize;
293 iinfo->i_lenExtents = elen; 293 iinfo->i_lenExtents = elen;
294 epos.bh = NULL; 294 epos.bh = NULL;
295 epos.block = iinfo->i_location; 295 epos.block = iinfo->i_location;