]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf70d7100f6918bc74262c0fb805f04d37246ae1
tree601e6457ce31dce18521cbfd51190501b0518c7d
parenta0fcd59acc7f55dc169965cf724241c8870b658a
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