Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1065348d authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

hfsplus: fix up a comparism in hfsplus_file_extend



Revert an incorrect hunk from commit b2837fcf,

	"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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarChristoph Hellwig <hch@tuxera.com>
parent a1dbcef0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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",