btrfs: rename __unlock_for_delalloc() and drop underscores
authorDavid Sterba <dsterba@suse.com>
Thu, 9 Jan 2025 10:24:10 +0000 (11:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:22 +0000 (14:53 +0100)
Drop the leading underscores in '__unlock_for_delalloc()' and rename it
to 'unlock_delalloc_folio()'. This also ensures naming parity with
'lock_delalloc_folios()'.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c

index 74f2775db51ee8e0676caaac4d731ccae7b08de9..bc4d41985c4b5a29a9866944ff233cf2702de55c 100644 (file)
@@ -221,7 +221,7 @@ static void __process_folios_contig(struct address_space *mapping,
        }
 }
 
-static noinline void __unlock_for_delalloc(const struct inode *inode,
+static noinline void unlock_delalloc_folio(const struct inode *inode,
                                           const struct folio *locked_folio,
                                           u64 start, u64 end)
 {
@@ -288,8 +288,7 @@ static noinline int lock_delalloc_folios(struct inode *inode,
 out:
        folio_batch_release(&fbatch);
        if (processed_end > start)
-               __unlock_for_delalloc(inode, locked_folio, start,
-                                     processed_end);
+               unlock_delalloc_folio(inode, locked_folio, start, processed_end);
        return -EAGAIN;
 }
 
@@ -390,7 +389,7 @@ again:
 
        unlock_extent(tree, delalloc_start, delalloc_end, &cached_state);
        if (!ret) {
-               __unlock_for_delalloc(inode, locked_folio, delalloc_start,
+               unlock_delalloc_folio(inode, locked_folio, delalloc_start,
                                      delalloc_end);
                cond_resched();
                goto again;
@@ -1248,7 +1247,7 @@ static noinline_for_stack int writepage_delalloc(struct btrfs_inode *inode,
                         */
                        unlock_extent(&inode->io_tree, found_start,
                                      found_start + found_len - 1, NULL);
-                       __unlock_for_delalloc(&inode->vfs_inode, folio,
+                       unlock_delalloc_folio(&inode->vfs_inode, folio,
                                              found_start,
                                              found_start + found_len - 1);
                }