mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 05:26:07 +00:00
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>
This commit is contained in:
parent
a92914a80b
commit
b7164d9ab0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user