Btrfs: constify struct btrfs_{,disk_}key wherever possible
authorOmar Sandoval <osandov@fb.com>
Wed, 18 Jan 2017 07:24:37 +0000 (23:24 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 14:50:58 +0000 (15:50 +0100)
commit310712b2f73ac1da4c3a99fd9886e8b652727508
tree601e6457ce31dce18521cbfd51190501b0518c7d
parent4aaedfb0b68ca83471c5f10f1da7f0f4714080a1
Btrfs: constify struct btrfs_{,disk_}key wherever possible

In a lot of places, it's unclear when it's safe to reuse a struct
btrfs_key after it has been passed to a helper function. Constify these
arguments wherever possible to make it obvious.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/root-tree.c