Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5578
b: refs/heads/master
c: f76d28d
h: refs/heads/master
v: v3
  • Loading branch information
Roman Zippel authored and Linus Torvalds committed Aug 2, 2005
1 parent f360db9 commit be06135
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: 0072b1389c25355ccc01048114adb9652c13fd9f
refs/heads/master: f76d28d235cf777dd2e1c1d48c16ee10c1d1587f
3 changes: 2 additions & 1 deletion trunk/fs/hfs/extent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion trunk/fs/hfsplus/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be06135

Please sign in to comment.