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: rename local variable for offset in folio

Use proper abbreviation of the 'offset in folio' in the variable name,
same as we have in accessors.c.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>

+4 -4
+4 -4
fs/btrfs/ctree.c
··· 767 767 768 768 while (low < high) { 769 769 const int unit_size = eb->folio_size; 770 - unsigned long oil; 770 + unsigned long oif; 771 771 unsigned long offset; 772 772 struct btrfs_disk_key *tmp; 773 773 struct btrfs_disk_key unaligned; ··· 775 775 776 776 mid = (low + high) / 2; 777 777 offset = p + mid * item_size; 778 - oil = get_eb_offset_in_folio(eb, offset); 778 + oif = get_eb_offset_in_folio(eb, offset); 779 779 780 - if (oil + key_size <= unit_size) { 780 + if (oif + key_size <= unit_size) { 781 781 const unsigned long idx = get_eb_folio_index(eb, offset); 782 782 char *kaddr = folio_address(eb->folios[idx]); 783 783 784 - tmp = (struct btrfs_disk_key *)(kaddr + oil); 784 + tmp = (struct btrfs_disk_key *)(kaddr + oif); 785 785 } else { 786 786 read_extent_buffer(eb, &unaligned, offset, key_size); 787 787 tmp = &unaligned;