]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: update scrub_parity to use u64 stripe_len
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 3 Apr 2017 20:45:33 +0000 (13:45 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:26 +0000 (14:07 +0200)
commitf9e12f6f2d035773434e47c1b24d4d09b7c0ba6e
tree7c58f201d852515a80f401f35eafc1f2590ae395
parentfb6906312a856ea10e4b2dca07a974665fbe19e6
Btrfs: update scrub_parity to use u64 stripe_len

Commit aa73ff7d041c ("Btrfs: fix divide error upon chunk's stripe_len")
changed stripe_len in struct map_lookup to u64, but didn't update
stripe_len in struct scrub_parity.

This updates the type and switches to div64_u64_rem to match u64 divisor.

Cc: David Sterba <dsterba@suse.cz>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c