- struct lu_attr *attr,
- struct dt_allocation_hint *hint,
- struct dt_object_format *dof,
- struct thandle *th)
-{
- int result;
- struct osd_thandle *oth;
- const struct dt_index_features *feat = dof->u.dof_idx.di_feat;
-
- __u32 mode = (attr->la_mode & (S_IFMT | S_IALLUGO | S_ISVTX));
-
- LASSERT(S_ISREG(attr->la_mode));
-
- oth = container_of(th, struct osd_thandle, ot_super);
- LASSERT(oth->ot_handle->h_transaction != NULL);
-
- result = osd_mkfile(info, obj, mode, hint, th);
- if (result == 0) {
- LASSERT(obj->oo_inode != NULL);
- if (feat->dif_flags & DT_IND_VARKEY)
- result = iam_lvar_create(obj->oo_inode,
- feat->dif_keysize_max,
- feat->dif_ptrsize,
- feat->dif_recsize_max,
- oth->ot_handle);
- else
- result = iam_lfix_create(obj->oo_inode,
- feat->dif_keysize_max,
- feat->dif_ptrsize,
- feat->dif_recsize_max,
- oth->ot_handle);
-
- }
- return result;
+ struct lu_attr *attr,
+ struct dt_allocation_hint *hint,
+ struct dt_object_format *dof,
+ struct thandle *th)
+{
+ int result;
+ struct osd_thandle *oth;
+ const struct dt_index_features *feat = dof->u.dof_idx.di_feat;
+
+ __u32 mode = (attr->la_mode & (S_IFMT | S_IALLUGO | S_ISVTX));
+
+ LASSERT(S_ISREG(attr->la_mode));
+
+ oth = container_of(th, struct osd_thandle, ot_super);
+ LASSERT(oth->ot_handle->h_transaction != NULL);
+
+ result = osd_mkfile(info, obj, mode, hint, th);
+ if (result == 0) {
+ LASSERT(obj->oo_inode != NULL);
+ if (feat->dif_flags & DT_IND_VARKEY)
+ result = iam_lvar_create(obj->oo_inode,
+ feat->dif_keysize_max,
+ feat->dif_ptrsize,
+ feat->dif_recsize_max,
+ oth->ot_handle);
+ else
+ result = iam_lfix_create(obj->oo_inode,
+ feat->dif_keysize_max,
+ feat->dif_ptrsize,
+ feat->dif_recsize_max,
+ oth->ot_handle);
+ }
+ return result;