//ll_queue_done_writing(inode);
rc = 0;
} else if (rc) {
- CERROR("inode %llu close failed: rc %d\n", st->st_ino, rc);
+ CERROR("inode %llu close failed: rc %d\n",
+ (long long)st->st_ino, rc);
} else {
rc = llu_objects_destroy(req, inode);
if (rc)
CERROR("inode %llu ll_objects destroy: rc = %d\n",
- st->st_ino, rc);
+ (long long)st->st_ino, rc);
}
mdc_clear_open_replay_data(och);
int rc = 0, rc2;
ENTRY;
- CDEBUG(D_VFSTRACE, "VFS Op:inode=%llu/%lu\n", llu_i2stat(inode)->st_ino,
- lli->lli_st_generation);
+ CDEBUG(D_VFSTRACE, "VFS Op:inode=%llu/%lu\n",
+ (long long)llu_i2stat(inode)->st_ino, lli->lli_st_generation);
if (llu_is_root_inode(inode))
RETURN(0);
struct obdo oa = {0};
int rc;
ENTRY;
- CDEBUG(D_VFSTRACE, "VFS Op:inode=%llu/%lu(%p) to %llu\n", st->st_ino,
- lli->lli_st_generation, inode, st->st_size);
+ CDEBUG(D_VFSTRACE, "VFS Op:inode=%llu/%lu(%p) to %llu\n",
+ (long long)st->st_ino, lli->lli_st_generation, inode,
+ (long long)st->st_size);
if (!lsm) {
CDEBUG(D_INODE, "truncate on inode %llu with no objects\n",
- st->st_ino);
+ (long long)st->st_ino);
EXIT;
return;
}
obd_adjust_kms(llu_i2obdexp(inode), lsm, st->st_size, 1);
CDEBUG(D_INFO, "calling punch for "LPX64" (all bytes after %Lu)\n",
- oa.o_id, st->st_size);
+ oa.o_id, (long long)st->st_size);
/* truncate == punch from new size to absolute end of file */
rc = obd_punch(llu_i2obdexp(inode), &oa, lsm, st->st_size,
OBD_OBJECT_EOF, NULL);
if (rc)
- CERROR("obd_truncate fails (%d) ino %llu\n", rc, st->st_ino);
+ CERROR("obd_truncate fails (%d) ino %llu\n",
+ rc, (long long)st->st_ino);
else
obdo_to_inode(inode, &oa, OBD_MD_FLSIZE | OBD_MD_FLBLOCKS |
OBD_MD_FLATIME | OBD_MD_FLMTIME |
if (it && pnode->p_base->pb_ino != NULL) {
struct inode *inode = pnode->p_base->pb_ino;
CDEBUG(D_DLMTRACE, "setting l_data to inode %p (%llu/%lu)\n",
- inode, llu_i2stat(inode)->st_ino,
+ inode, (long long)llu_i2stat(inode)->st_ino,
llu_i2info(inode)->lli_st_generation);
mdc_set_lock_data(&it->d.lustre.it_lock_handle, inode);
}
clear_bit(LLI_F_HAVE_MDS_SIZE_LOCK, &lli->lli_flags);
if (lock->l_resource->lr_name.name[0] != st->st_ino ||
- lock->l_resource->lr_name.name[1] != lli->lli_st_generation) {
+ lock->l_resource->lr_name.name[1] !=lli->lli_st_generation){
LDLM_ERROR(lock, "data mismatch with ino %llu/%lu",
- st->st_ino, lli->lli_st_generation);
+ (long long)st->st_ino,lli->lli_st_generation);
}
if (S_ISDIR(st->st_mode)) {
CDEBUG(D_INODE, "invalidating inode %llu\n",
- st->st_ino);
+ (long long)st->st_ino);
llu_invalidate_inode_pages(inode);
}
if (lli->lli_it) {
CDEBUG(D_INODE, "inode %llu still have intent "
"%p(opc 0x%x), release it\n",
- st->st_ino, lli->lli_it,
+ (long long) st->st_ino, lli->lli_it,
lli->lli_it->it_op);
ll_intent_release(lli->lli_it);
OBD_FREE(lli->lli_it, sizeof(*lli->lli_it));
} else {
if (memcmp(lli->lli_smd, lsm, sizeof(*lsm))) {
CERROR("lsm mismatch for inode %lld\n",
- st->st_ino);
+ (long long)st->st_ino);
LBUG();
}
}
ll_inode2fid(&fid, inode);
rc = mdc_getattr(sbi->ll_mdc_exp, &fid, valid, ealen, &req);
if (rc) {
- CERROR("failure %d inode %llu\n", rc, llu_i2stat(inode)->st_ino);
+ CERROR("failure %d inode %llu\n", rc,
+ (long long)llu_i2stat(inode)->st_ino);
RETURN(-abs(rc));
}
rc = mdc_req2lustre_md(req, 0, sbi->ll_osc_exp, &md);
ENTRY;
CDEBUG(D_VFSTRACE, "VFS Op:inode=%llu/%lu(%p)\n",
- llu_i2stat(inode)->st_ino, lli->lli_st_generation, inode);
+ (long long)llu_i2stat(inode)->st_ino, lli->lli_st_generation,
+ inode);
ll_inode2fid(&fid, inode);
clear_bit(LLI_F_HAVE_MDS_SIZE_LOCK, &(lli->lli_flags));
int rc = 0;
ENTRY;
- CDEBUG(D_VFSTRACE, "VFS Op:inode=%llu\n", st->st_ino);
+ CDEBUG(D_VFSTRACE, "VFS Op:inode=%llu\n", (long long)st->st_ino);
if (ia_valid & ATTR_SIZE) {
if (attr->ia_size > ll_file_maxbytes(inode)) {
CDEBUG(D_INODE, "file too large %llu > "LPU64"\n",
- attr->ia_size, ll_file_maxbytes(inode));
+ (long long)attr->ia_size,
+ ll_file_maxbytes(inode));
RETURN(-EFBIG);
}
struct obdo oa;
CDEBUG(D_INODE, "set mtime on OST inode %llu to %lu\n",
- st->st_ino, LTIME_S(attr->ia_mtime));
+ (long long)st->st_ino, LTIME_S(attr->ia_mtime));
oa.o_id = lsm->lsm_object_id;
oa.o_valid = OBD_MD_FLID;
obdo_from_inode(&oa, inode, OBD_MD_FLTYPE | OBD_MD_FLATIME |
rc = mdc_getattr(sbi->ll_mdc_exp, &fid,
OBD_MD_LINKNAME, symlen, request);
if (rc) {
- CERROR("inode %llu: rc = %d\n", st->st_ino, rc);
+ CERROR("inode %llu: rc = %d\n", (long long)st->st_ino, rc);
RETURN(rc);
}
CERROR ("OBD_MD_LINKNAME not set on reply\n");
GOTO (failed, rc = -EPROTO);
}
-
- LASSERT (symlen != 0);
+
+ LASSERT(symlen != 0);
if (body->eadatasize != symlen) {
- CERROR ("inode %llu: symlink length %d not expected %d\n",
- st->st_ino, body->eadatasize - 1, symlen - 1);
- GOTO (failed, rc = -EPROTO);
+ CERROR("inode %llu: symlink length %d not expected %d\n",
+ (long long)st->st_ino, body->eadatasize - 1, symlen - 1);
+ GOTO(failed, rc = -EPROTO);
}
*symname = lustre_msg_buf ((*request)->rq_repmsg, 1, symlen);
if (*symname == NULL ||
- strnlen (*symname, symlen) != symlen - 1) {
+ strnlen(*symname, symlen) != symlen - 1) {
/* not full/NULL terminated */
- CERROR ("inode %llu: symlink not NULL terminated string"
- "of length %d\n", st->st_ino, symlen - 1);
- GOTO (failed, rc = -EPROTO);
+ CERROR("inode %llu: symlink not NULL terminated string"
+ "of length %d\n", (long long)st->st_ino, symlen - 1);
+ GOTO(failed, rc = -EPROTO);
}
OBD_ALLOC(lli->lli_symlink_name, symlen);
CDEBUG(D_VFSTRACE, "VFS Op:name=%.*s,dir=%llu\n",
(int)pno->p_base->pb_name.len, pno->p_base->pb_name.name,
- llu_i2stat(dir)->st_ino);
+ (long long)llu_i2stat(dir)->st_ino);
if (llu_i2stat(dir)->st_nlink >= EXT2_LINK_MAX)
RETURN(err);
struct mdc_op_data op_data;
int err = -EMLINK;
ENTRY;
- CDEBUG(D_VFSTRACE, "VFS Op:name=%.*s,dir=%llu/%lu(%p)\n",
- len, name, st->st_ino, llu_i2info(dir)->lli_st_generation, dir);
+
+ CDEBUG(D_VFSTRACE, "VFS Op:name=%.*s,dir=%llu/%lu(%p)\n", len, name,
+ (long long)st->st_ino, llu_i2info(dir)->lli_st_generation, dir);
if (st->st_nlink >= EXT2_LINK_MAX)
RETURN(err);
int rc;
ENTRY;
CDEBUG(D_VFSTRACE, "VFS Op:name=%.*s,dir=%llu/%lu(%p)\n", len, name,
- llu_i2stat(dir)->st_ino, llu_i2info(dir)->lli_st_generation,dir);
+ (long long)llu_i2stat(dir)->st_ino,
+ llu_i2info(dir)->lli_st_generation, dir);
llu_prepare_mdc_op_data(&op_data, dir, NULL, name, len, S_IFDIR);
rc = mdc_unlink(llu_i2sbi(dir)->ll_mdc_exp, &op_data, &request);