aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-mod-log.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-06-05 02:28:30 +0200
committerDavid Sterba <dsterba@suse.com>2024-09-10 16:51:22 +0200
commit070969f17d82e4220f5800ea63139e513cdb17fd (patch)
tree30735ec82446bde0cd8276cea72c5b7392d58219 /fs/btrfs/tree-mod-log.c
parent1b6e068a0cc3d3888ddd5e4967357075fd6502da (diff)
btrfs: rework BTRFS_I as macro to preserve parameter const
Currently BTRFS_I is a static inline function that takes a const inode and returns btrfs inode, dropping the 'const' qualifier. This can break assumptions of compiler though it seems there's no real case. To make the parameter and return type consistent regardint const we can use the container_of_const() that preserves it. However this would not check the parameter type. To fix that use the same _Generic construct but implement only the two expected types. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions