]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ocfs2/alloc.c
sysfs: Remove first pass at shadow directory support
[linux-2.6-omap-h63xx.git] / fs / ocfs2 / alloc.c
index 4f517665c9a0e4b187985a7c7d745c8ae4ddcc91..778a850b4634755c897c9708b2e2062e995e589b 100644 (file)
@@ -5602,6 +5602,7 @@ static int ocfs2_do_truncate(struct ocfs2_super *osb,
                                      clusters_to_del;
        spin_unlock(&OCFS2_I(inode)->ip_lock);
        le32_add_cpu(&fe->i_clusters, -clusters_to_del);
+       inode->i_blocks = ocfs2_inode_sector_count(inode);
 
        status = ocfs2_trim_tree(inode, path, handle, tc,
                                 clusters_to_del, &delete_blk);