Skip to content

Commit 1065348

Browse files
author
Christoph Hellwig
committed
hfsplus: fix up a comparism in hfsplus_file_extend
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 <joe@perches.com> Signed-off-by: Christoph Hellwig <hch@tuxera.com>
1 parent a1dbcef commit 1065348

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/hfsplus/extents.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ int hfsplus_file_extend(struct inode *inode)
397397
u32 start, len, goal;
398398
int res;
399399

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

0 commit comments

Comments
 (0)