diff options
| author | Filipe Manana <[email protected]> | 2024-02-08 22:08:34 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-03-04 15:24:50 +0000 |
| commit | f4f15454fa42c91490d08e5eb8b4c11f0355a576 (patch) | |
| tree | 454533fddbe452ed0693c8435dd48ac6d92ec3e9 /fs/btrfs/inode.c | |
| parent | btrfs: assert root delalloc lock is held at __btrfs_del_delalloc_inode() (diff) | |
| download | kernel-f4f15454fa42c91490d08e5eb8b4c11f0355a576.tar.gz kernel-f4f15454fa42c91490d08e5eb8b4c11f0355a576.zip | |
btrfs: rename btrfs_add_delalloc_inodes() to singular form
The function btrfs_add_delalloc_inodes() adds a single inode its root's
list of delalloc inodes, so it doesn't make any sense at all for the
function's name to be plural. Rename it to the singular form
btrfs_add_delalloc_inode() to avoid any confusion.
Reviewed-by: Boris Burkov <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/inode.c')
| -rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index c397a503e927..10c6b52b2f7f 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2385,7 +2385,7 @@ void btrfs_merge_delalloc_extent(struct btrfs_inode *inode, struct extent_state spin_unlock(&inode->lock); } -static void btrfs_add_delalloc_inodes(struct btrfs_inode *inode) +static void btrfs_add_delalloc_inode(struct btrfs_inode *inode) { struct btrfs_root *root = inode->root; struct btrfs_fs_info *fs_info = root->fs_info; @@ -2472,7 +2472,7 @@ void btrfs_set_delalloc_extent(struct btrfs_inode *inode, struct extent_state *s inode->defrag_bytes += len; if (do_list && !test_bit(BTRFS_INODE_IN_DELALLOC_LIST, &inode->runtime_flags)) - btrfs_add_delalloc_inodes(inode); + btrfs_add_delalloc_inode(inode); spin_unlock(&inode->lock); } |
