Skip to content

Commit

Permalink
hfsplus: fix up a comparism in hfsplus_file_extend
Browse files Browse the repository at this point in the history
Revert an incorrect hunk from commit b2837fc,

	"hfsplus: %L-to-%ll, macro correction, and remove unneeded braces"

revert a pointless change of comparism operation argument order, which turned
out to not even be equivalent.

Reported-by: Joe Perches <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
Christoph Hellwig committed Feb 3, 2011
1 parent a1dbcef commit 1065348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/hfsplus/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ int hfsplus_file_extend(struct inode *inode)
u32 start, len, goal;
int res;

if (sbi->total_blocks - sbi->free_blocks + 8 >
sbi->alloc_file->i_size * 8) {
if (sbi->alloc_file->i_size * 8 <
sbi->total_blocks - sbi->free_blocks + 8) {
/* extend alloc file */
printk(KERN_ERR "hfs: extend alloc file! "
"(%llu,%u,%u)\n",
Expand Down

0 comments on commit 1065348

Please sign in to comment.