summaryrefslogtreecommitdiff
path: root/fs/ceph/osdmap.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-10-28 21:57:25 (GMT)
committerSage Weil <sage@newdream.net>2009-10-29 00:45:37 (GMT)
commit5600f5ebd318f7af6f4b19a29f08d18bb85264e5 (patch)
treedacf9f162b079f5978446cdd7461a83edf41ef3b /fs/ceph/osdmap.c
parent35e054a66e07f508aa7cfabc7db1757379093689 (diff)
downloadlinux-fsl-qoriq-5600f5ebd318f7af6f4b19a29f08d18bb85264e5.tar.xz
ceph: correct comment to match striping calculation
The object extent offset is the file offset _modulo_ the stripe unit. The code was correct, the comment was wrong. Reported-by: Noah Watkins <jayhawk@soe.ucsc.edu> Signed-off-by: Sage Weil <sage@newdream.net>
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 60012e0..a9a4143 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,
*bno = objsetno * sc + stripepos;
dout("objset %u * sc %u = bno %u\n", objsetno, sc, (unsigned)*bno);
- /* *oxoff = *off / layout->fl_stripe_unit; */
+ /* *oxoff = *off % layout->fl_stripe_unit; */
t = off;
*oxoff = do_div(t, su);
*oxlen = min_t(u64, *plen, su - *oxoff);