projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbbccec
)
ceph: remove redundant use of le32_to_cpu
author
Noah Watkins
<noah@noahdesu.com>
Wed, 28 Oct 2009 21:04:48 +0000
(14:04 -0700)
committer
Sage Weil
<sage@newdream.net>
Thu, 29 Oct 2009 00:44:37 +0000
(17:44 -0700)
Using stripe unit size calculated and saved on the stack to avoid
a redundant call to le32_to_cpu.
Signed-off-by: Noah Watkins <noah@noahdesu.com>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/osdmap.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/osdmap.c
b/fs/ceph/osdmap.c
index 72d75a239ac234db244beaecefece23a89a31b89..60012e05bdfd68aaca9bddc3e9d18622ecc40b3f 100644
(file)
--- a/
fs/ceph/osdmap.c
+++ b/
fs/ceph/osdmap.c
@@
-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);