]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: struct-funcs, constify readers
authorJeff Mahoney <jeffm@suse.com>
Thu, 29 Jun 2017 03:56:53 +0000 (21:56 -0600)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 12:19:53 +0000 (14:19 +0200)
commit32920c36387ae74440c680b63d6b17cec6cde4fd
tree574441acf725ed6fc7dc370c0c1d298989051981
parentfb07d5918a9b55a42d0f41a713ad75caf83ab728
btrfs: struct-funcs, constify readers

We have reader helpers for most of the on-disk structures that use
an extent_buffer and pointer as offset into the buffer that are
read-only.  We should mark them as const and, in turn, allow consumers
of these interfaces to mark the buffers const as well.

No impact on code, but serves as documentation that a buffer is intended
not to be modified.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/struct-funcs.c