Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64887
b: refs/heads/master
c: e535e2e
h: refs/heads/master
i:
  64885: 30c1f1c
  64883: 369c673
  64879: 249cae6
v: v3
  • Loading branch information
Mark Fasheh committed Sep 11, 2007
1 parent 4556fb3 commit 2d8a69d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30b8548f2c270c0205558fe4826a6ab8e7fe51ad
refs/heads/master: e535e2efd295c3990bb9f654c8bb6bd176ebdc2b
1 change: 1 addition & 0 deletions trunk/fs/ocfs2/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion trunk/fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb,
}

i_size_write(inode, new_i_size);
inode->i_blocks = ocfs2_align_bytes_to_sectors(new_i_size);
inode->i_ctime = inode->i_mtime = CURRENT_TIME;

di = (struct ocfs2_dinode *) fe_bh->b_data;
Expand Down

0 comments on commit 2d8a69d

Please sign in to comment.