diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-09-12 04:23:16 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-09-12 04:23:16 +0400 |
commit | 577107e8e4cf9f6f4f5ef8350ac9a8faa6c3796d (patch) | |
tree | 8b3d6902494dcf3d872ce7e47ebe38846f0d8895 /fs/ocfs2/alloc.c | |
parent | 7111de76438e05ceab8ba2a471192fa3ea6c3572 (diff) | |
parent | e535e2efd295c3990bb9f654c8bb6bd176ebdc2b (diff) | |
download | linux-577107e8e4cf9f6f4f5ef8350ac9a8faa6c3796d.tar.xz |
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2:
ocfs2: Fix calculation of i_blocks during truncate
[PATCH] ocfs2: Fix a wrong cluster calculation.
[PATCH] ocfs2: fix mount option parsing
ocfs2: update docs for new features
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r-- | fs/ocfs2/alloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index 4f517665c9a0..778a850b4634 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c @@ -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); |