* Use is subject to license terms.
*/
/*
+ * Copyright (c) 2011 Whamcloud, Inc.
+ */
+/*
* This file is part of Lustre, http://www.lustre.org/
* Lustre is a trademark of Sun Microsystems, Inc.
*
int (*moo_xattr_del)(const struct lu_env *env, struct md_object *obj,
const char *name);
+ /** \retval number of bytes actually read upon success */
int (*moo_readpage)(const struct lu_env *env, struct md_object *obj,
const struct lu_rdpg *rdpg);
struct md_object *obj, int flag);
int (*moo_close)(const struct lu_env *env, struct md_object *obj,
- struct md_attr *ma);
+ struct md_attr *ma, int mode);
int (*moo_capa_get)(const struct lu_env *, struct md_object *,
struct lustre_capa *, int renewal);
static inline int mo_close(const struct lu_env *env,
struct md_object *m,
- struct md_attr *ma)
+ struct md_attr *ma,
+ int mode)
{
LASSERT(m->mo_ops->moo_close);
- return m->mo_ops->moo_close(env, m, ma);
+ return m->mo_ops->moo_close(env, m, ma, mode);
}
static inline int mo_readpage(const struct lu_env *env,