struct lu_buf *buf, const char *name,
struct lustre_capa *capa)
{
- struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_device *osd = osd_obj2dev(obj);
int rc, size;
ENTRY;
LASSERT(dt_object_exists(dt));
down(&obj->oo_guard);
- rc = -udmu_xattr_get(obj->oo_db, buf->lb_buf, buf->lb_len, name, &size);
+ rc = -udmu_xattr_get(&osd->od_objset, obj->oo_db, buf->lb_buf,
+ buf->lb_len, name, &size);
up(&obj->oo_guard);
if(rc == -ENOENT)
const int buflen, const char *name, int fl,
struct thandle *handle)
{
- struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_device *osd = osd_obj2dev(obj);
struct osd_thandle *oh;
ENTRY;
LASSERT(oh->ot_tx != NULL);
down(&obj->oo_guard);
- udmu_xattr_declare_set(obj->oo_db, buflen, name, oh->ot_tx);
+ udmu_xattr_declare_set(&osd->od_objset, obj->oo_db, buflen, name,
+ oh->ot_tx);
up(&obj->oo_guard);
RETURN(0);
const char *name, int fl, struct thandle *handle,
struct lustre_capa *capa)
{
- struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_device *osd = osd_obj2dev(obj);
struct osd_thandle *oh;
int rc;
LASSERT(oh->ot_tx != NULL);
down(&obj->oo_guard);
- rc = -udmu_xattr_set(obj->oo_db, buf->lb_buf, buf->lb_len, name, oh->ot_tx);
+ rc = -udmu_xattr_set(&osd->od_objset, obj->oo_db, buf->lb_buf,
+ buf->lb_len, name, oh->ot_tx);
up(&obj->oo_guard);
RETURN(rc);
const char *name, struct thandle *handle)
{
struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_device *osd = osd_obj2dev(obj);
struct osd_thandle *oh;
ENTRY;
LASSERT(oh->ot_tx != NULL);
down(&obj->oo_guard);
- udmu_xattr_declare_del(obj->oo_db, name, oh->ot_tx);
+ udmu_xattr_declare_del(&osd->od_objset, obj->oo_db, name, oh->ot_tx);
up(&obj->oo_guard);
RETURN(0);
const char *name, struct thandle *handle,
struct lustre_capa *capa)
{
- struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_device *osd = osd_obj2dev(obj);
struct osd_thandle *oh;
int rc;
LASSERT(oh->ot_tx != NULL);
down(&obj->oo_guard);
- rc = -udmu_xattr_del(obj->oo_db, name, oh->ot_tx);
+ rc = -udmu_xattr_del(&osd->od_objset, obj->oo_db, name, oh->ot_tx);
up(&obj->oo_guard);
RETURN(rc);
struct dt_object *dt, struct lu_buf *buf,
struct lustre_capa *capa)
{
- struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_object *obj = osd_dt_obj(dt);
+ struct osd_device *osd = osd_obj2dev(obj);
int rc;
ENTRY;
LASSERT(dt_object_exists(dt));
down(&obj->oo_guard);
- rc = -udmu_xattr_list(obj->oo_db, buf->lb_buf, buf->lb_len);
+ rc = -udmu_xattr_list(&osd->od_objset, obj->oo_db, buf->lb_buf,
+ buf->lb_len);
up(&obj->oo_guard);
RETURN(rc);