diff options
| author | David Sterba <[email protected]> | 2024-05-30 17:14:12 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-07-11 13:33:22 +0000 |
| commit | 2917f74102cf23afe770c1293aabce005f956b4f (patch) | |
| tree | ba69c547357811da7b2618e6a7a158ed57b0ec49 /fs/btrfs/delalloc-space.c | |
| parent | btrfs: do not directly include rwlock_types.h (diff) | |
| download | kernel-2917f74102cf23afe770c1293aabce005f956b4f.tar.gz kernel-2917f74102cf23afe770c1293aabce005f956b4f.zip | |
btrfs: constify pointer parameters where applicable
We can add const to many parameters, this is for clarity and minor
addition to safety. There are some minor effects, in the assembly
code and .ko measured on release config. This patch does not cover all
possible conversions.
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/delalloc-space.c')
| -rw-r--r-- | fs/btrfs/delalloc-space.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/delalloc-space.c b/fs/btrfs/delalloc-space.c index b3527efd0b4b..7aa8a395d838 100644 --- a/fs/btrfs/delalloc-space.c +++ b/fs/btrfs/delalloc-space.c @@ -111,7 +111,7 @@ * making error handling and cleanup easier. */ -int btrfs_alloc_data_chunk_ondemand(struct btrfs_inode *inode, u64 bytes) +int btrfs_alloc_data_chunk_ondemand(const struct btrfs_inode *inode, u64 bytes) { struct btrfs_root *root = inode->root; struct btrfs_fs_info *fs_info = root->fs_info; |
