OSDN Git Service

btrfs: use helper sizeof_field in struct accessors
authorDavid Sterba <dsterba@suse.com>
Thu, 13 Jul 2023 14:10:26 +0000 (16:10 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:52:13 +0000 (14:52 +0200)
commit98efb4eb310d0d72e663924adc7b5b6e14813f9d
tree7a34007d522dfaf9f1684fd86cdd4af62ad66120
parent16c3a47648383efa625f771999182db9f34fb8d9
btrfs: use helper sizeof_field in struct accessors

There's a helper for obtaining size of a struct member, we can use it
instead of open coding the pointer magic.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/accessors.h