Skip to content

Commit 2b41599

Browse files
committed
btrfs: rename __unlock_for_delalloc() and drop underscores
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 <[email protected]> Reviewed-by: Anand Jain <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 2a1e837 commit 2b41599

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

fs/btrfs/extent_io.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static void __process_folios_contig(struct address_space *mapping,
221221
}
222222
}
223223

224-
static noinline void __unlock_for_delalloc(const struct inode *inode,
224+
static noinline void unlock_delalloc_folio(const struct inode *inode,
225225
const struct folio *locked_folio,
226226
u64 start, u64 end)
227227
{
@@ -288,8 +288,7 @@ static noinline int lock_delalloc_folios(struct inode *inode,
288288
out:
289289
folio_batch_release(&fbatch);
290290
if (processed_end > start)
291-
__unlock_for_delalloc(inode, locked_folio, start,
292-
processed_end);
291+
unlock_delalloc_folio(inode, locked_folio, start, processed_end);
293292
return -EAGAIN;
294293
}
295294

@@ -390,7 +389,7 @@ noinline_for_stack bool find_lock_delalloc_range(struct inode *inode,
390389

391390
unlock_extent(tree, delalloc_start, delalloc_end, &cached_state);
392391
if (!ret) {
393-
__unlock_for_delalloc(inode, locked_folio, delalloc_start,
392+
unlock_delalloc_folio(inode, locked_folio, delalloc_start,
394393
delalloc_end);
395394
cond_resched();
396395
goto again;
@@ -1248,7 +1247,7 @@ static noinline_for_stack int writepage_delalloc(struct btrfs_inode *inode,
12481247
*/
12491248
unlock_extent(&inode->io_tree, found_start,
12501249
found_start + found_len - 1, NULL);
1251-
__unlock_for_delalloc(&inode->vfs_inode, folio,
1250+
unlock_delalloc_folio(&inode->vfs_inode, folio,
12521251
found_start,
12531252
found_start + found_len - 1);
12541253
}

0 commit comments

Comments
 (0)