diff options
author | David Sterba <dsterba@suse.com> | 2024-08-27 03:44:30 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-09-10 16:51:19 +0200 |
commit | b7164d9ab03137dc47faa970e25e6507f3c57590 (patch) | |
tree | 8992cc5cd726f0a34ac9034ce98b672f7e09dee6 | |
parent | a92914a80b137a447688d868274871f16ec152d5 (diff) |
btrfs: constify arguments of compare_inode_defrag()
A comparator function does not change its parameters, make them const.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/defrag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/defrag.c b/fs/btrfs/defrag.c index e2949f630584..e4bb5a8651f3 100644 --- a/fs/btrfs/defrag.c +++ b/fs/btrfs/defrag.c @@ -45,8 +45,8 @@ struct inode_defrag { u32 extent_thresh; }; -static int compare_inode_defrag(struct inode_defrag *defrag1, - struct inode_defrag *defrag2) +static int compare_inode_defrag(const struct inode_defrag *defrag1, + const struct inode_defrag *defrag2) { if (defrag1->root > defrag2->root) return 1; |