Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-9679 modules: Use LIST_HEAD for declaring list_heads
[fs/lustre-release.git]
/
lustre
/
osc
/
osc_page.c
diff --git
a/lustre/osc/osc_page.c
b/lustre/osc/osc_page.c
index
7a7dc1d
..
9dae62a
100644
(file)
--- a/
lustre/osc/osc_page.c
+++ b/
lustre/osc/osc_page.c
@@
-84,20
+84,17
@@
static void osc_page_transfer_add(const struct lu_env *env,
{
struct osc_object *obj = cl2osc(opg->ops_cl.cpl_obj);
- /* ops_lru and ops_inflight share the same field, so take it from LRU
- * first and then use it as inflight. */
osc_lru_use(osc_cli(obj), opg);
}
-int osc_page_cache_add(const struct lu_env *env,
-
const struct cl_page_slice *slice, struct cl_io *io
)
+int osc_page_cache_add(const struct lu_env *env,
struct osc_page *opg,
+
struct cl_io *io, cl_commit_cbt cb
)
{
- struct osc_page *opg = cl2osc_page(slice);
int result;
ENTRY;
osc_page_transfer_get(opg, "transfer\0cache");
- result = osc_queue_async_io(env, io, opg);
+ result = osc_queue_async_io(env, io, opg
, cb
);
if (result != 0)
osc_page_transfer_put(env, opg);
else
@@
-444,7
+441,7
@@
int lru_queue_work(const struct lu_env *env, void *data)
void osc_lru_add_batch(struct client_obd *cli, struct list_head *plist)
{
-
struct list_head lru = LIST_HEAD_INIT
(lru);
+
LIST_HEAD
(lru);
struct osc_async_page *oap;
long npages = 0;