Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35e054a6 authored by Noah Watkins's avatar Noah Watkins Committed by Sage Weil
Browse files

ceph: remove redundant use of le32_to_cpu



Using stripe unit size calculated and saved on the stack to avoid
a redundant call to le32_to_cpu.

Signed-off-by: default avatarNoah Watkins <noah@noahdesu.com>
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent fbbccec9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -735,7 +735,7 @@ void ceph_calc_file_object_mapping(struct ceph_file_layout *layout,

	dout("mapping %llu~%llu  osize %u fl_su %u\n", off, *plen,
	     osize, su);
	su_per_object = osize / le32_to_cpu(layout->fl_stripe_unit);
	su_per_object = osize / su;
	dout("osize %u / su %u = su_per_object %u\n", osize, su,
	     su_per_object);