aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-delay.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2017-07-28 10:42:25 -0400
committerMike Snitzer <snitzer@redhat.com>2017-09-11 10:03:12 -0400
commit228bb5b26038a7d58b7c11af1297f34b534b59cd (patch)
treee088b35b4159c6155ba26f5f37b688777300245c /drivers/md/dm-delay.c
parentdm log writes: don't use all the cpu while waiting to log blocks (diff)
downloadlinux-dev-228bb5b26038a7d58b7c11af1297f34b534b59cd.tar.xz
linux-dev-228bb5b26038a7d58b7c11af1297f34b534b59cd.zip
dm log writes: fix >512b sectorsize support
512b sectors vs device's physical sectorsize was not maintained consistently and as such the support for >512b sector devices has bugs. The log metadata expects native sectorsize but 512b sectors were being stored. Also, device's sectorsize was assumed when assigning the bi_sector for blocks that were being logged. Fix this up by adding two helpers to convert between bio and dev sectors, and use these in the appropriate places to fix the problem and make it clear which units go where. Doing so allows dm-log-writes use with 4k devices. Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-delay.c')
0 files changed, 0 insertions, 0 deletions