Commit b7164d9a authored by David Sterba's avatar David Sterba

btrfs: constify arguments of compare_inode_defrag()

A comparator function does not change its parameters, make them const.
Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent a92914a8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment