struct thandle *handle)
{
struct osd_object *obj = osd_dt_obj(dt);
+ LASSERT(handle != NULL);
LASSERT(dt_object_exists(dt));
LASSERT(osd_invariant(obj));
LASSERT(osd_write_locked(ctxt, obj));
LASSERT(osd_invariant(obj));
LASSERT(!dt_object_exists(dt));
LASSERT(osd_write_locked(ctx, obj));
+ LASSERT(th != NULL);
/*
* XXX missing: permission checks.
LASSERT(osd_invariant(obj));
LASSERT(dt_object_exists(dt));
LASSERT(osd_write_locked(ctxt, obj));
+ LASSERT(th != NULL);
if (inode->i_nlink < LDISKFS_LINK_MAX) {
inode->i_nlink ++;
LASSERT(osd_invariant(obj));
LASSERT(dt_object_exists(dt));
LASSERT(osd_write_locked(ctxt, obj));
+ LASSERT(th != NULL);
if (inode->i_nlink > 0) {
inode->i_nlink --;
LASSERT(dt_object_exists(dt));
LASSERT(inode->i_op != NULL && inode->i_op->setxattr != NULL);
LASSERT(osd_write_locked(ctxt, obj));
+ LASSERT(handle != NULL);
dentry->d_inode = inode;
LASSERT(dt_object_exists(dt));
LASSERT(inode->i_op != NULL && inode->i_op->removexattr != NULL);
LASSERT(osd_write_locked(ctxt, obj));
+ LASSERT(handle != NULL);
dentry->d_inode = inode;
return inode->i_op->removexattr(dentry, name);
mm_segment_t seg;
ssize_t result;
+ LASSERT(handle != NULL);
+
file = osd_rw_init(ctxt, inode, &seg);
result = file->f_op->write(file, buf, count, pos);
osd_rw_fini(&seg);
LASSERT(dt_object_exists(dt));
LASSERT(obj->oo_container.ic_object == obj->oo_inode);
LASSERT(obj->oo_ipd != NULL);
+ LASSERT(handle != NULL);
oh = container_of0(handle, struct osd_thandle, ot_super);
LASSERT(oh->ot_handle != NULL);
LASSERT(dt_object_exists(dt));
LASSERT(obj->oo_container.ic_object == obj->oo_inode);
LASSERT(obj->oo_ipd != NULL);
+ LASSERT(th != NULL);
oh = container_of0(th, struct osd_thandle, ot_super);
LASSERT(oh->ot_handle != NULL);
struct osd_it *it = (struct osd_it *)di;
struct osd_thandle *oh;
+ LASSERT(th != NULL);
oh = container_of0(th, struct osd_thandle, ot_super);
LASSERT(oh->ot_handle != NULL);
{
struct osd_object *obj = osd_dt_obj(dt);
+ LASSERT(handle != NULL);
LASSERT(S_ISDIR(obj->oo_inode->i_mode));
ENTRY;
RETURN(-EOPNOTSUPP);
LASSERT(S_ISDIR(obj->oo_inode->i_mode));
LASSERT(osd_invariant(obj));
+ LASSERT(th != NULL);
luch = lu_object_find(ctx, ludev->ld_site, fid);
if (!IS_ERR(luch)) {