aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/osdmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/osdmap.c')
-rw-r--r--fs/ceph/osdmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/osdmap.c b/fs/ceph/osdmap.c
index 60012e05bdfd..a9a4143234fa 100644
--- a/fs/ceph/osdmap.c
+++ b/fs/ceph/osdmap.c
@@ -752,7 +752,7 @@ void ceph_calc_file_object_mapping(struct ceph_file_layout *layout,
752 752
753 *bno = objsetno * sc + stripepos; 753 *bno = objsetno * sc + stripepos;
754 dout("objset %u * sc %u = bno %u\n", objsetno, sc, (unsigned)*bno); 754 dout("objset %u * sc %u = bno %u\n", objsetno, sc, (unsigned)*bno);
755 /* *oxoff = *off / layout->fl_stripe_unit; */ 755 /* *oxoff = *off % layout->fl_stripe_unit; */
756 t = off; 756 t = off;
757 *oxoff = do_div(t, su); 757 *oxoff = do_div(t, su);
758 *oxlen = min_t(u64, *plen, su - *oxoff); 758 *oxlen = min_t(u64, *plen, su - *oxoff);