X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fhfs%2Fextent.c;h=5ea6b3d45eaa608f9ab38887de18ccb8477dacc2;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=cbc8510ad22212a58f7dfab2ce1a34f36d599064;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/fs/hfs/extent.c b/fs/hfs/extent.c index cbc8510ad..5ea6b3d45 100644 --- a/fs/hfs/extent.c +++ b/fs/hfs/extent.c @@ -482,7 +482,8 @@ void hfs_file_truncate(struct inode *inode) page_cache_release(page); mark_inode_dirty(inode); return; - } + } else if (inode->i_size == HFS_I(inode)->phys_size) + return; size = inode->i_size + HFS_SB(sb)->alloc_blksz - 1; blk_cnt = size / HFS_SB(sb)->alloc_blksz; alloc_cnt = HFS_I(inode)->alloc_blocks;