Skip to content

Commit 6d2f07e

Browse files
committed
btrfs: rename __need_auto_defrag() and drop double underscores
The function does not follow the pattern where the underscores would be justified, so rename it. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent b7164d9 commit 6d2f07e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

fs/btrfs/defrag.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static int __btrfs_add_inode_defrag(struct btrfs_inode *inode,
107107
return 0;
108108
}
109109

110-
static inline int __need_auto_defrag(struct btrfs_fs_info *fs_info)
110+
static inline int need_auto_defrag(struct btrfs_fs_info *fs_info)
111111
{
112112
if (!btrfs_test_opt(fs_info, AUTO_DEFRAG))
113113
return 0;
@@ -130,7 +130,7 @@ int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans,
130130
u64 transid;
131131
int ret;
132132

133-
if (!__need_auto_defrag(fs_info))
133+
if (!need_auto_defrag(fs_info))
134134
return 0;
135135

136136
if (test_bit(BTRFS_INODE_IN_DEFRAG, &inode->runtime_flags))
@@ -245,7 +245,7 @@ static int __btrfs_run_defrag_inode(struct btrfs_fs_info *fs_info,
245245
again:
246246
if (test_bit(BTRFS_FS_STATE_REMOUNTING, &fs_info->fs_state))
247247
goto cleanup;
248-
if (!__need_auto_defrag(fs_info))
248+
if (!need_auto_defrag(fs_info))
249249
goto cleanup;
250250

251251
/* Get the inode */
@@ -306,7 +306,7 @@ int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info)
306306
if (test_bit(BTRFS_FS_STATE_REMOUNTING, &fs_info->fs_state))
307307
break;
308308

309-
if (!__need_auto_defrag(fs_info))
309+
if (!need_auto_defrag(fs_info))
310310
break;
311311

312312
/* find an inode to defrag */

0 commit comments

Comments
 (0)