commit | 1cbb1f454e5321e47fc1e6b233066c7ccc979d15 | [log] [tgz] |
---|---|---|
author | Jeff Mahoney <jeffm@suse.com> | Wed Jun 28 21:56:53 2017 -0600 |
committer | David Sterba <dsterba@suse.com> | Wed Aug 16 14:19:53 2017 +0200 |
tree | 574441acf725ed6fc7dc370c0c1d298989051981 | |
parent | 23d1f73788785a770fe6eb348fee4b26281d2064 [diff] |
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>