projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3715166
)
ceph: only set num_pages in calc_layout
author
Sage Weil
<sage@newdream.net>
Thu, 10 Jun 2010 22:50:10 +0000
(15:50 -0700)
committer
Sage Weil
<sage@newdream.net>
Mon, 2 Aug 2010 03:11:40 +0000
(20:11 -0700)
Setting it elsewhere is unnecessary and more fragile.
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/osd_client.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/osd_client.c
b/fs/ceph/osd_client.c
index e38522347898046fe778df23bdc467c5d4248363..707d2dbd87768542e87303c1c8ebe20060abf51b 100644
(file)
--- a/
fs/ceph/osd_client.c
+++ b/
fs/ceph/osd_client.c
@@
-1276,8
+1276,6
@@
int ceph_osdc_readpages(struct ceph_osd_client *osdc,
/* it may be a short read due to an object boundary */
req->r_pages = pages;
- num_pages = calc_pages_for(off, *plen);
- req->r_num_pages = num_pages;
dout("readpages final extent is %llu~%llu (%d pages)\n",
off, *plen, req->r_num_pages);
@@
-1319,7
+1317,6
@@
int ceph_osdc_writepages(struct ceph_osd_client *osdc, struct ceph_vino vino,
/* it may be a short write due to an object boundary */
req->r_pages = pages;
- req->r_num_pages = calc_pages_for(off, len);
dout("writepages %llu~%llu (%d pages)\n", off, len,
req->r_num_pages);