]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Compute and look up csums based on sectorsized blocks
authorChandan Rajendra <chandan@linux.vnet.ibm.com>
Thu, 21 Jan 2016 10:25:54 +0000 (15:55 +0530)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Feb 2016 18:23:47 +0000 (19:23 +0100)
commit4330bf39ba93373ec3306de7a486d9b37242e5cf
treee6f172d5c570047271691f9bd7bbcfc321b413de
parentc0662a5b03da6d0763126cfc0634260ee339da94
Btrfs: Compute and look up csums based on sectorsized blocks

Checksums are applicable to sectorsize units. The current code uses
bio->bv_len units to compute and look up checksums. This works on machines
where sectorsize == PAGE_SIZE. This patch makes the checksum computation and
look up code to work with sectorsize units.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file-item.c