summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-stripe.c
diff options
context:
space:
mode:
authorMikulas Patocka2009-12-11 00:52:08 +0100
committerAlasdair G Kergon2009-12-11 00:52:08 +0100
commit102c6ddb1d081a6a1fede38c43a42c9811313ec7 (patch)
tree2274305e73dccefa6a4620180339ec04504f93fb /drivers/md/dm-stripe.c
parentdm snapshot: avoid else clause in persistent_read_metadata (diff)
downloadkernel-qcow2-linux-102c6ddb1d081a6a1fede38c43a42c9811313ec7.tar.gz
kernel-qcow2-linux-102c6ddb1d081a6a1fede38c43a42c9811313ec7.tar.xz
kernel-qcow2-linux-102c6ddb1d081a6a1fede38c43a42c9811313ec7.zip
dm snapshot: simplify sector_to_chunk expression
Removed unnecessary 'and' masking: The right shift discards the lower bits so there is no need to clear them. (A later patch needs this change to support a 32-bit chunk_mask.) Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Reviewed-by: Mike Snitzer <snitzer@redhat.com> Reviewed-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-stripe.c')
0 files changed, 0 insertions, 0 deletions