Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

btrfs: unify types for binary search variables

The variables calculating where to jump next are using mixed in types
which requires some conversions on the instruction level. Using 'u32'
removes one call to 'movslq', making the main loop shorter.

This complements type conversion done in a724f313f84beb ("btrfs: do
unsigned integer division in the extent buffer binary search loop")

Signed-off-by: David Sterba <dsterba@suse.com>

+1 -1
+1 -1
fs/btrfs/ctree.c
··· 771 771 unsigned long offset; 772 772 struct btrfs_disk_key *tmp; 773 773 struct btrfs_disk_key unaligned; 774 - int mid; 774 + u32 mid; 775 775 776 776 mid = (low + high) / 2; 777 777 offset = p + mid * item_size;