]> err.no Git - linux-2.6/blobdiff - fs/hfsplus/extents.c
[PATCH] sunrpc: print unsigned integers in stats
[linux-2.6] / fs / hfsplus / extents.c
index 376498cc64fddb5b54df6d8f249df43570d38c5e..e7235ca79a95285a1ddb0cdb79e2cadaa9895705 100644 (file)
@@ -461,7 +461,9 @@ void hfsplus_file_truncate(struct inode *inode)
                page_cache_release(page);
                mark_inode_dirty(inode);
                return;
-       }
+       } else if (inode->i_size == HFSPLUS_I(inode).phys_size)
+               return;
+
        blk_cnt = (inode->i_size + HFSPLUS_SB(sb).alloc_blksz - 1) >> HFSPLUS_SB(sb).alloc_blksz_shift;
        alloc_cnt = HFSPLUS_I(inode).alloc_blocks;
        if (blk_cnt == alloc_cnt)