Commit 8aa6790f authored by Dmitry Monakhov's avatar Dmitry Monakhov Committed by Theodore Ts'o
Browse files

ext4: ext4_get_reserved_space() must return bytes instead of blocks

parent b844167e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1010,7 +1010,7 @@ qsize_t ext4_get_reserved_space(struct inode *inode)
		EXT4_I(inode)->i_reserved_meta_blocks;
		EXT4_I(inode)->i_reserved_meta_blocks;
	spin_unlock(&EXT4_I(inode)->i_block_reservation_lock);
	spin_unlock(&EXT4_I(inode)->i_block_reservation_lock);


	return total;
	return (total << inode->i_blkbits);
}
}
/*
/*
 * Calculate the number of metadata blocks need to reserve
 * Calculate the number of metadata blocks need to reserve