]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: rename local variable for offset in folio
authorDavid Sterba <dsterba@suse.com>
Tue, 6 Jan 2026 16:20:26 +0000 (17:20 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:56:07 +0000 (18:56 +0200)
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>
fs/btrfs/ctree.c

index 273865bd4be419b1c2743e335edc76e8865b91fa..d70da290bedfc7c8286c339080d5db41e2616dd0 100644 (file)
@@ -767,7 +767,7 @@ int btrfs_bin_search(const struct extent_buffer *eb, int first_slot,
 
        while (low < high) {
                const int unit_size = eb->folio_size;
-               unsigned long oil;
+               unsigned long oif;
                unsigned long offset;
                struct btrfs_disk_key *tmp;
                struct btrfs_disk_key unaligned;
@@ -775,13 +775,13 @@ int btrfs_bin_search(const struct extent_buffer *eb, int first_slot,
 
                mid = (low + high) / 2;
                offset = p + mid * item_size;
-               oil = get_eb_offset_in_folio(eb, offset);
+               oif = get_eb_offset_in_folio(eb, offset);
 
-               if (oil + key_size <= unit_size) {
+               if (oif + key_size <= unit_size) {
                        const unsigned long idx = get_eb_folio_index(eb, offset);
                        char *kaddr = folio_address(eb->folios[idx]);
 
-                       tmp = (struct btrfs_disk_key *)(kaddr + oil);
+                       tmp = (struct btrfs_disk_key *)(kaddr + oif);
                } else {
                        read_extent_buffer(eb, &unaligned, offset, key_size);
                        tmp = &unaligned;