summaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-10-28 14:57:25 -0700
committerSage Weil <sage@newdream.net>2009-10-28 17:45:37 -0700
commit5600f5ebd318f7af6f4b19a29f08d18bb85264e5 (patch)
treedacf9f162b079f5978446cdd7461a83edf41ef3b /fs/ceph
parent35e054a66e07f508aa7cfabc7db1757379093689 (diff)
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')
-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,
*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);