OSDN Git Service

btrfs: Remove unused arguments from btrfs_changed_cb_t
authorNikolay Borisov <nborisov@suse.com>
Mon, 21 Aug 2017 09:43:45 +0000 (12:43 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:56 +0000 (12:27 +0100)
commitee8c494f88736c1a1873fdd65559828f9a734bcf
tree7c4b66650a68a27e4ab34de6c0bf06dfd985f3fa
parenta0357511f29f9b83e2c0d12621c339a5900eaa5a
btrfs: Remove unused arguments from btrfs_changed_cb_t

btrfs_changed_cb_t represents the signature of the callback being passed
to btrfs_compare_trees. Currently there is only one such callback,
namely changed_cb in send.c. This function doesn't really uses the first
2 parameters, i.e. the roots. Since there are not other functions
implementing the btrfs_changed_cb_t let's remove the unused parameters
from the prototype and implementation.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/send.c