btrfs: factor out a btrfs_csum_ptr helper
authorChristoph Hellwig <hch@lst.de>
Sun, 22 May 2022 11:47:52 +0000 (13:47 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:44:34 +0000 (17:44 +0200)
commita89ce08ce63808308bb41a087860c245f136928a
treed793df6d61c2ac270ddf6aa34257d9e1808bd9ee
parent97861cd1660de638e6fd588030afe8965ebfbe90
btrfs: factor out a btrfs_csum_ptr helper

Add a helper to find the csum for a byte offset into the csum buffer.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c