Searched refs:lsm (Results 1 - 42 of 42) sorted by relevance

/linux-4.4.14/drivers/staging/lustre/lustre/lov/
H A Dlov_ea.c52 struct lov_stripe_md *lsm; member in struct:lovea_unpack_args
89 struct lov_stripe_md *lsm; lsm_alloc_plain() local
98 lsm = libcfs_kvzalloc(*size, GFP_NOFS); lsm_alloc_plain()
99 if (!lsm) lsm_alloc_plain()
106 lsm->lsm_oinfo[i] = loi; lsm_alloc_plain()
108 lsm->lsm_stripe_count = stripe_count; lsm_alloc_plain()
109 return lsm; lsm_alloc_plain()
113 kmem_cache_free(lov_oinfo_slab, lsm->lsm_oinfo[i]); lsm_alloc_plain()
114 kvfree(lsm); lsm_alloc_plain()
118 void lsm_free_plain(struct lov_stripe_md *lsm) lsm_free_plain() argument
120 __u16 stripe_count = lsm->lsm_stripe_count; lsm_free_plain()
124 kmem_cache_free(lov_oinfo_slab, lsm->lsm_oinfo[i]); lsm_free_plain()
125 kvfree(lsm); lsm_free_plain()
128 static void lsm_unpackmd_common(struct lov_stripe_md *lsm, lsm_unpackmd_common() argument
135 lmm_oi_le_to_cpu(&lsm->lsm_oi, &lmm->lmm_oi); lsm_unpackmd_common()
136 lsm->lsm_stripe_size = le32_to_cpu(lmm->lmm_stripe_size); lsm_unpackmd_common()
137 lsm->lsm_pattern = le32_to_cpu(lmm->lmm_pattern); lsm_unpackmd_common()
138 lsm->lsm_layout_gen = le16_to_cpu(lmm->lmm_layout_gen); lsm_unpackmd_common()
139 lsm->lsm_pool_name[0] = '\0'; lsm_unpackmd_common()
143 lsm_stripe_by_index_plain(struct lov_stripe_md *lsm, int *stripeno, lsm_stripe_by_index_plain() argument
147 *swidth = (u64)lsm->lsm_stripe_size * lsm->lsm_stripe_count; lsm_stripe_by_index_plain()
151 lsm_stripe_by_offset_plain(struct lov_stripe_md *lsm, int *stripeno, lsm_stripe_by_offset_plain() argument
155 *swidth = (u64)lsm->lsm_stripe_size * lsm->lsm_stripe_count; lsm_stripe_by_offset_plain()
158 static int lsm_destroy_plain(struct lov_stripe_md *lsm, struct obdo *oa, lsm_destroy_plain() argument
210 static int lsm_unpackmd_v1(struct lov_obd *lov, struct lov_stripe_md *lsm, lsm_unpackmd_v1() argument
218 lsm_unpackmd_common(lsm, lmm); lsm_unpackmd_v1()
220 stripe_count = lsm_is_released(lsm) ? 0 : lsm->lsm_stripe_count; lsm_unpackmd_v1()
224 loi = lsm->lsm_oinfo[i]; lsm_unpackmd_v1()
247 lsm->lsm_maxbytes = stripe_maxbytes * lsm->lsm_stripe_count; lsm_unpackmd_v1()
248 if (lsm->lsm_stripe_count == 0) lsm_unpackmd_v1()
249 lsm->lsm_maxbytes = stripe_maxbytes * lov->desc.ld_tgt_count; lsm_unpackmd_v1()
291 static int lsm_unpackmd_v3(struct lov_obd *lov, struct lov_stripe_md *lsm, lsm_unpackmd_v3() argument
303 lsm_unpackmd_common(lsm, (struct lov_mds_md_v1 *)lmm); lsm_unpackmd_v3()
305 stripe_count = lsm_is_released(lsm) ? 0 : lsm->lsm_stripe_count; lsm_unpackmd_v3()
307 cplen = strlcpy(lsm->lsm_pool_name, lmm->lmm_pool_name, lsm_unpackmd_v3()
308 sizeof(lsm->lsm_pool_name)); lsm_unpackmd_v3()
309 if (cplen >= sizeof(lsm->lsm_pool_name)) lsm_unpackmd_v3()
314 loi = lsm->lsm_oinfo[i]; lsm_unpackmd_v3()
337 lsm->lsm_maxbytes = stripe_maxbytes * lsm->lsm_stripe_count; lsm_unpackmd_v3()
338 if (lsm->lsm_stripe_count == 0) lsm_unpackmd_v3()
339 lsm->lsm_maxbytes = stripe_maxbytes * lov->desc.ld_tgt_count; lsm_unpackmd_v3()
353 void dump_lsm(unsigned int level, const struct lov_stripe_md *lsm) dump_lsm() argument
355 CDEBUG(level, "lsm %p, objid " DOSTID ", maxbytes %#llx, magic 0x%08X, stripe_size %u, stripe_count %u, refc: %d, layout_gen %u, pool [" LOV_POOLNAMEF "]\n", dump_lsm()
356 lsm, dump_lsm()
357 POSTID(&lsm->lsm_oi), lsm->lsm_maxbytes, lsm->lsm_magic, dump_lsm()
358 lsm->lsm_stripe_size, lsm->lsm_stripe_count, dump_lsm()
359 atomic_read(&lsm->lsm_refc), lsm->lsm_layout_gen, dump_lsm()
360 lsm->lsm_pool_name); dump_lsm()
H A Dlov_merge.c49 int lov_merge_lvb_kms(struct lov_stripe_md *lsm, lov_merge_lvb_kms() argument
61 assert_spin_locked(&lsm->lsm_lock); lov_merge_lvb_kms()
62 LASSERT(lsm->lsm_lock_owner == current_pid()); lov_merge_lvb_kms()
65 POSTID(&lsm->lsm_oi), lvb->lvb_size, lvb->lvb_mtime, lov_merge_lvb_kms()
67 for (i = 0; i < lsm->lsm_stripe_count; i++) { lov_merge_lvb_kms()
68 struct lov_oinfo *loi = lsm->lsm_oinfo[i]; lov_merge_lvb_kms()
77 lov_size = lov_stripe_size(lsm, tmpsize, i); lov_merge_lvb_kms()
84 lov_size = lov_stripe_size(lsm, tmpsize, i); lov_merge_lvb_kms()
97 POSTID(&lsm->lsm_oi), loi->loi_ost_idx, lov_merge_lvb_kms()
113 int lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, lov_adjust_kms() argument
120 assert_spin_locked(&lsm->lsm_lock); lov_adjust_kms()
121 LASSERT(lsm->lsm_lock_owner == current_pid()); lov_adjust_kms()
124 for (; stripe < lsm->lsm_stripe_count; stripe++) { lov_adjust_kms()
125 struct lov_oinfo *loi = lsm->lsm_oinfo[stripe]; lov_adjust_kms()
127 kms = lov_size_to_stripe(lsm, size, stripe); lov_adjust_kms()
138 stripe = lov_stripe_number(lsm, size - 1); lov_adjust_kms()
139 kms = lov_size_to_stripe(lsm, size, stripe); lov_adjust_kms()
140 loi = lsm->lsm_oinfo[stripe]; lov_adjust_kms()
151 struct lov_stripe_md *lsm, int stripeno, int *set) lov_merge_attrs()
160 lov_size = lov_stripe_size(lsm, src->o_size, stripeno); lov_merge_attrs()
176 tgt->o_oi = lsm->lsm_oi; lov_merge_attrs()
178 tgt->o_size = lov_stripe_size(lsm, src->o_size, lov_merge_attrs()
150 lov_merge_attrs(struct obdo *tgt, struct obdo *src, u64 valid, struct lov_stripe_md *lsm, int stripeno, int *set) lov_merge_attrs() argument
H A Dlov_pack.c112 struct lov_stripe_md *lsm) lov_packmd()
124 if (lsm) { lov_packmd()
125 lmm_magic = lsm->lsm_magic; lov_packmd()
130 /* lsm == NULL and lmmp == NULL */ lov_packmd()
142 if (lsm) { lov_packmd()
147 lsm->lsm_stripe_count); lov_packmd()
148 lsm->lsm_stripe_count = stripe_count; lov_packmd()
149 } else if (!lsm_is_released(lsm)) { lov_packmd()
150 stripe_count = lsm->lsm_stripe_count; lov_packmd()
172 if (*lmmp && !lsm) { lov_packmd()
196 if (!lsm) lov_packmd()
202 lmm_oi_cpu_to_le(&lmmv1->lmm_oi, &lsm->lsm_oi); lov_packmd()
203 lmmv1->lmm_stripe_size = cpu_to_le32(lsm->lsm_stripe_size); lov_packmd()
205 lmmv1->lmm_pattern = cpu_to_le32(lsm->lsm_pattern); lov_packmd()
206 lmmv1->lmm_layout_gen = cpu_to_le16(lsm->lsm_layout_gen); lov_packmd()
207 if (lsm->lsm_magic == LOV_MAGIC_V3) { lov_packmd()
208 cplen = strlcpy(lmmv3->lmm_pool_name, lsm->lsm_pool_name, lov_packmd()
218 struct lov_oinfo *loi = lsm->lsm_oinfo[i]; lov_packmd()
289 CDEBUG(D_INFO, "alloc lsm, stripe_count %d\n", stripe_count); lov_alloc_memmd()
316 struct lov_stripe_md *lsm = *lsmp; lov_free_memmd() local
320 LASSERT(atomic_read(&lsm->lsm_refc) > 0); lov_free_memmd()
321 refc = atomic_dec_return(&lsm->lsm_refc); lov_free_memmd()
323 LASSERT(lsm_op_find(lsm->lsm_magic) != NULL); lov_free_memmd()
324 lsm_op_find(lsm->lsm_magic)->lsm_free(lsm); lov_free_memmd()
391 int lov_getstripe(struct obd_export *exp, struct lov_stripe_md *lsm, lov_getstripe() argument
404 if (!lsm) lov_getstripe()
427 (lum.lmm_stripe_count < lsm->lsm_stripe_count)) { lov_getstripe()
429 lum.lmm_stripe_count = lsm->lsm_stripe_count; lov_getstripe()
434 rc = lov_packmd(exp, &lmmk, lsm); lov_getstripe()
111 lov_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, struct lov_stripe_md *lsm) lov_packmd() argument
H A Dlov_object.c205 struct lov_stripe_md *lsm = conf->u.coc_md->lsm; lov_init_raid0() local
209 if (lsm->lsm_magic != LOV_MAGIC_V1 && lsm->lsm_magic != LOV_MAGIC_V3) { lov_init_raid0()
210 dump_lsm(D_ERROR, lsm); lov_init_raid0()
212 LOV_MAGIC_V1, LOV_MAGIC_V3, lsm->lsm_magic); lov_init_raid0()
216 lov->lo_lsm = lsm_addref(lsm); lov_init_raid0()
217 r0->lo_nr = lsm->lsm_stripe_count; lov_init_raid0()
231 struct lov_oinfo *oinfo = lsm->lsm_oinfo[i]; lov_init_raid0()
270 struct lov_stripe_md *lsm = conf->u.coc_md->lsm; lov_init_released() local
272 LASSERT(lsm != NULL); lov_init_released()
273 LASSERT(lsm_is_released(lsm)); lov_init_released()
276 lov->lo_lsm = lsm_addref(lsm); lov_init_released()
342 struct lov_stripe_md *lsm = lov->lo_lsm; lov_delete_raid0() local
345 dump_lsm(D_INODE, lsm); lov_delete_raid0()
405 struct lov_stripe_md *lsm = lov->lo_lsm; lov_print_raid0() local
408 (*p)(env, cookie, "stripes: %d, %s, lsm{%p 0x%08X %d %u %u}:\n", lov_print_raid0()
409 r0->lo_nr, lov->lo_layout_invalid ? "invalid" : "valid", lsm, lov_print_raid0()
410 lsm->lsm_magic, atomic_read(&lsm->lsm_refc), lov_print_raid0()
411 lsm->lsm_stripe_count, lsm->lsm_layout_gen); lov_print_raid0()
429 struct lov_stripe_md *lsm = lov->lo_lsm; lov_print_released() local
432 "released: %s, lsm{%p 0x%08X %d %u %u}:\n", lov_print_released()
433 lov->lo_layout_invalid ? "invalid" : "valid", lsm, lov_print_released()
434 lsm->lsm_magic, atomic_read(&lsm->lsm_refc), lov_print_released()
435 lsm->lsm_stripe_count, lsm->lsm_layout_gen); lov_print_released()
462 * an on going IO otherwise lsm may be replaced. lov_attr_get_raid0()
469 /* LASSERT(atomic_read(&lsm->lsm_refc) > 1); */ lov_attr_get_raid0()
472 struct lov_stripe_md *lsm = lov->lo_lsm; lov_attr_get_raid0() local
490 * XXX take lsm spin-lock to keep lov_merge_lvb_kms() lov_attr_get_raid0()
495 lov_stripe_lock(lsm); lov_attr_get_raid0()
496 result = lov_merge_lvb_kms(lsm, lvb, &kms); lov_attr_get_raid0()
497 lov_stripe_unlock(lsm); lov_attr_get_raid0()
568 * Return lov_layout_type associated with a given lsm
570 static enum lov_layout_type lov_type(struct lov_stripe_md *lsm) lov_type() argument
572 if (lsm == NULL) lov_type()
574 if (lsm_is_released(lsm)) lov_type()
670 llt = lov_type(conf->u.coc_md->lsm); lov_layout_change()
736 lov->lo_type = lov_type(cconf->u.coc_md->lsm); lov_object_init()
747 struct lov_stripe_md *lsm = NULL; lov_conf_set() local
771 lsm = conf->u.coc_md->lsm; lov_conf_set()
772 if ((lsm == NULL && lov->lo_lsm == NULL) || lov_conf_set()
773 ((lsm != NULL && lov->lo_lsm != NULL) && lov_conf_set()
774 (lov->lo_lsm->lsm_layout_gen == lsm->lsm_layout_gen) && lov_conf_set()
775 (lov->lo_lsm->lsm_pattern == lsm->lsm_pattern))) { lov_conf_set()
913 struct lov_stripe_md *lsm = NULL; lov_lsm_addref() local
917 lsm = lsm_addref(lov->lo_lsm); lov_lsm_addref()
918 CDEBUG(D_INODE, "lsm %p addref %d/%d by %p.\n", lov_lsm_addref()
919 lsm, atomic_read(&lsm->lsm_refc), lov_lsm_addref()
923 return lsm; lov_lsm_addref()
929 struct lov_stripe_md *lsm = NULL; lov_lsm_get() local
937 lsm = lov_lsm_addref(lu2lov(luobj)); lov_lsm_get()
938 return lsm; lov_lsm_get()
942 void lov_lsm_put(struct cl_object *unused, struct lov_stripe_md *lsm) lov_lsm_put() argument
944 if (lsm != NULL) lov_lsm_put()
945 lov_free_memmd(&lsm); lov_lsm_put()
962 struct lov_stripe_md *lsm; lov_read_and_clear_async_rc() local
965 lsm = lov->lo_lsm; lov_read_and_clear_async_rc()
966 LASSERT(lsm != NULL); lov_read_and_clear_async_rc()
967 for (i = 0; i < lsm->lsm_stripe_count; i++) { lov_read_and_clear_async_rc()
968 struct lov_oinfo *loi = lsm->lsm_oinfo[i]; lov_read_and_clear_async_rc()
H A Dlov_offset.c46 u64 lov_stripe_size(struct lov_stripe_md *lsm, u64 ost_size, lov_stripe_size() argument
49 unsigned long ssize = lsm->lsm_stripe_size; lov_stripe_size()
53 int magic = lsm->lsm_magic; lov_stripe_size()
59 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, NULL, &swidth); lov_stripe_size()
119 int lov_stripe_offset(struct lov_stripe_md *lsm, u64 lov_off, lov_stripe_offset() argument
122 unsigned long ssize = lsm->lsm_stripe_size; lov_stripe_offset()
124 int magic = lsm->lsm_magic; lov_stripe_offset()
134 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, &lov_off, lov_stripe_offset()
176 u64 lov_size_to_stripe(struct lov_stripe_md *lsm, u64 file_size, lov_size_to_stripe() argument
179 unsigned long ssize = lsm->lsm_stripe_size; lov_size_to_stripe()
181 int magic = lsm->lsm_magic; lov_size_to_stripe()
187 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, &file_size, lov_size_to_stripe()
217 int lov_stripe_intersects(struct lov_stripe_md *lsm, int stripeno, lov_stripe_intersects() argument
222 start_side = lov_stripe_offset(lsm, start, stripeno, obd_start); lov_stripe_intersects()
223 end_side = lov_stripe_offset(lsm, end, stripeno, obd_end); lov_stripe_intersects()
249 int lov_stripe_number(struct lov_stripe_md *lsm, u64 lov_off) lov_stripe_number() argument
251 unsigned long ssize = lsm->lsm_stripe_size; lov_stripe_number()
253 int magic = lsm->lsm_magic; lov_stripe_number()
256 lsm_op_find(magic)->lsm_stripe_by_offset(lsm, NULL, &lov_off, &swidth); lov_stripe_number()
H A Dlov_internal.h133 struct lov_stripe_md *lsm, int stripeno, int *set);
134 int lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm,
136 int lov_merge_lvb_kms(struct lov_stripe_md *lsm,
140 u64 lov_stripe_size(struct lov_stripe_md *lsm, u64 ost_size,
142 int lov_stripe_offset(struct lov_stripe_md *lsm, u64 lov_off,
144 u64 lov_size_to_stripe(struct lov_stripe_md *lsm, u64 file_size,
146 int lov_stripe_intersects(struct lov_stripe_md *lsm, int stripeno,
149 int lov_stripe_number(struct lov_stripe_md *lsm, u64 lov_off);
175 struct obdo *src_oa, struct lov_stripe_md *lsm,
211 struct lov_stripe_md *lsm);
215 struct lov_stripe_md *lsm, struct lov_user_md *lump);
226 void lsm_free_plain(struct lov_stripe_md *lsm);
227 void dump_lsm(unsigned int level, const struct lov_stripe_md *lsm);
254 static inline struct lov_stripe_md *lsm_addref(struct lov_stripe_md *lsm) lsm_addref() argument
256 LASSERT(atomic_read(&lsm->lsm_refc) > 0); lsm_addref()
257 atomic_inc(&lsm->lsm_refc); lsm_addref()
258 return lsm; lsm_addref()
H A Dlov_obd.c970 struct lov_stripe_md *obj_mdp, *lsm; lov_recreate() local
983 lsm = *ea; lov_recreate()
984 if (lsm == NULL) { lov_recreate()
994 for (i = 0; i < lsm->lsm_stripe_count; i++) { lov_recreate()
995 struct lov_oinfo *loi = lsm->lsm_oinfo[i]; lov_recreate()
1008 if (i == lsm->lsm_stripe_count) { lov_recreate()
1062 struct obdo *oa, struct lov_stripe_md *lsm, lov_destroy()
1072 ASSERT_LSM_MAGIC(lsm); lov_destroy()
1084 rc = lov_prep_destroy_set(exp, &oinfo, oa, lsm, oti, &set); lov_destroy()
1109 LASSERT(lsm_op_find(lsm->lsm_magic) != NULL); lov_destroy()
1110 rc = lsm_op_find(lsm->lsm_magic)->lsm_destroy(lsm, oa, md_exp); lov_destroy()
1277 struct lov_stripe_md *lsm, ldlm_iterator_t it, lov_find_cbdata()
1283 ASSERT_LSM_MAGIC(lsm); lov_find_cbdata()
1289 for (i = 0; i < lsm->lsm_stripe_count; i++) { lov_find_cbdata()
1291 struct lov_oinfo *loi = lsm->lsm_oinfo[i]; lov_find_cbdata()
1589 * \param lsm striping information for the file
1595 struct lov_stripe_md *lsm, u64 fm_start, fiemap_calc_fm_end_offset()
1608 for (i = 0; i < lsm->lsm_stripe_count; i++) { fiemap_calc_fm_end_offset()
1609 struct lov_oinfo *oinfo = lsm->lsm_oinfo[i]; fiemap_calc_fm_end_offset()
1624 if ((lov_stripe_intersects(lsm, stripe_no, fm_start, fm_end, fiemap_calc_fm_end_offset()
1633 *start_stripe = (stripe_no + 1) % lsm->lsm_stripe_count; fiemap_calc_fm_end_offset()
1647 * \param lsm striping information for the file
1655 static int fiemap_calc_last_stripe(struct lov_stripe_md *lsm, u64 fm_start, fiemap_calc_last_stripe() argument
1663 if (fm_end - fm_start > lsm->lsm_stripe_size * lsm->lsm_stripe_count) { fiemap_calc_last_stripe()
1664 last_stripe = start_stripe < 1 ? lsm->lsm_stripe_count - 1 : fiemap_calc_last_stripe()
1666 *stripe_count = lsm->lsm_stripe_count; fiemap_calc_last_stripe()
1668 for (j = 0, i = start_stripe; j < lsm->lsm_stripe_count; fiemap_calc_last_stripe()
1669 i = (i + 1) % lsm->lsm_stripe_count, j++) { fiemap_calc_last_stripe()
1670 if ((lov_stripe_intersects(lsm, i, fm_start, fm_end, fiemap_calc_last_stripe()
1675 last_stripe = (start_stripe + j - 1) % lsm->lsm_stripe_count; fiemap_calc_last_stripe()
1715 __u32 *vallen, void *val, struct lov_stripe_md *lsm) lov_fiemap()
1733 if (!lsm_has_objects(lsm)) { lov_fiemap()
1754 actual_start_stripe = start_stripe = lov_stripe_number(lsm, fm_start); lov_fiemap()
1761 last_stripe = fiemap_calc_last_stripe(lsm, fm_start, fm_end, lov_fiemap()
1764 fm_end_offset = fiemap_calc_fm_end_offset(fiemap, lsm, fm_start, lov_fiemap()
1779 i++, cur_stripe = (cur_stripe + 1) % lsm->lsm_stripe_count) { lov_fiemap()
1788 if ((lov_stripe_intersects(lsm, cur_stripe, fm_start, fm_end, lov_fiemap()
1792 if (lov_oinfo_is_dummy(lsm->lsm_oinfo[cur_stripe])) { lov_fiemap()
1807 lun_end = lov_size_to_stripe(lsm, fm_start + fm_length, lov_fiemap()
1840 fm_key->oa.o_oi = lsm->lsm_oinfo[cur_stripe]->loi_oi; lov_fiemap()
1841 ost_index = lsm->lsm_oinfo[cur_stripe]->loi_ost_idx; lov_fiemap()
1868 keylen, key, vallen, fm_local, lsm); lov_fiemap()
1904 curr_loc = lov_stripe_size(lsm, lov_fiemap()
1929 if (lsm->lsm_stripe_count > 1) lov_fiemap()
1953 struct lov_stripe_md *lsm) lov_get_info()
1985 for (i = 0; i < lsm->lsm_stripe_count; i++) { lov_get_info()
1986 loi = lsm->lsm_oinfo[i]; lov_get_info()
2001 dump_lsm(D_ERROR, lsm); lov_get_info()
2028 rc = lov_fiemap(lov, keylen, key, vallen, val, lsm); lov_get_info()
1061 lov_destroy(const struct lu_env *env, struct obd_export *exp, struct obdo *oa, struct lov_stripe_md *lsm, struct obd_trans_info *oti, struct obd_export *md_exp) lov_destroy() argument
1276 lov_find_cbdata(struct obd_export *exp, struct lov_stripe_md *lsm, ldlm_iterator_t it, void *data) lov_find_cbdata() argument
1594 fiemap_calc_fm_end_offset(struct ll_user_fiemap *fiemap, struct lov_stripe_md *lsm, u64 fm_start, u64 fm_end, int *start_stripe) fiemap_calc_fm_end_offset() argument
1714 lov_fiemap(struct lov_obd *lov, __u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) lov_fiemap() argument
1951 lov_get_info(const struct lu_env *env, struct obd_export *exp, __u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) lov_get_info() argument
H A Dlov_request.c352 struct obdo *src_oa, struct lov_stripe_md *lsm, lov_prep_destroy_set()
367 set->set_oi->oi_md = lsm; lov_prep_destroy_set()
373 for (i = 0; i < lsm->lsm_stripe_count; i++) { lov_prep_destroy_set()
377 loi = lsm->lsm_oinfo[i]; lov_prep_destroy_set()
437 struct lov_stripe_md *lsm = req->rq_rqset->set_oi->oi_md; lov_update_setattr_set() local
448 lsm->lsm_oinfo[req->rq_stripe]->loi_lvb.lvb_ctime = lov_update_setattr_set()
451 lsm->lsm_oinfo[req->rq_stripe]->loi_lvb.lvb_mtime = lov_update_setattr_set()
454 lsm->lsm_oinfo[req->rq_stripe]->loi_lvb.lvb_atime = lov_update_setattr_set()
351 lov_prep_destroy_set(struct obd_export *exp, struct obd_info *oinfo, struct obdo *src_oa, struct lov_stripe_md *lsm, struct obd_trans_info *oti, struct lov_request_set **reqset) lov_prep_destroy_set() argument
H A Dlov_io.c87 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; lov_io_sub_inherit() local
97 new_size = lov_size_to_stripe(lsm, new_size, stripe); lov_io_sub_inherit()
107 off = lov_size_to_stripe(lsm, off, stripe); lov_io_sub_inherit()
262 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; lov_page_subio() local
268 LASSERT(lsm != NULL); lov_page_subio()
278 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; lov_io_subio_init() local
288 libcfs_kvzalloc(lsm->lsm_stripe_count * lov_io_subio_init()
384 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; lov_io_iter_init() local
394 if (!lov_stripe_intersects(lsm, stripe, lio->lis_pos, lov_io_iter_init()
432 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; lov_io_rw_iter_init() local
435 unsigned long ssize = lsm->lsm_stripe_size; lov_io_rw_iter_init()
H A Dlov_lock.c903 struct lov_stripe_md *lsm = lov->lo_lsm; lov_lock_stripe_is_matching() local
920 if (end - start <= lsm->lsm_stripe_size) { lov_lock_stripe_is_matching()
923 idx = lov_stripe_number(lsm, start); lov_lock_stripe_is_matching()
926 idx = lov_stripe_number(lsm, end); lov_lock_stripe_is_matching()
941 result = lov_stripe_intersects(lsm, stripe, start, end, lov_lock_stripe_is_matching()
/linux-4.4.14/drivers/staging/lustre/lustre/obdecho/
H A Decho_client.c163 struct lov_stripe_md **lsm);
456 /* clear the lsm pointer so that it won't get freed. */ echo_object_init()
941 struct lov_stripe_md *lsm; cl_echo_object_find() local
949 lsm = *lsmp; cl_echo_object_find()
950 LASSERT(lsm); cl_echo_object_find()
951 LASSERTF(ostid_id(&lsm->lsm_oi) != 0, DOSTID"\n", POSTID(&lsm->lsm_oi)); cl_echo_object_find()
952 LASSERTF(ostid_seq(&lsm->lsm_oi) == FID_SEQ_ECHO, DOSTID"\n", cl_echo_object_find()
953 POSTID(&lsm->lsm_oi)); cl_echo_object_find()
967 struct lov_oinfo *oinfo = lsm->lsm_oinfo[0]; cl_echo_object_find()
970 oinfo->loi_oi = lsm->lsm_oi; cl_echo_object_find()
977 md->lsm = lsm; cl_echo_object_find()
984 rc = ostid_to_fid(fid, &lsm->lsm_oi, 0); cl_echo_object_find()
1270 echo_copyout_lsm(struct lov_stripe_md *lsm, void *_ulsm, int ulsm_nob) echo_copyout_lsm() argument
1276 nob = offsetof(struct lov_stripe_md, lsm_oinfo[lsm->lsm_stripe_count]); echo_copyout_lsm()
1280 if (copy_to_user(ulsm, lsm, sizeof(*ulsm))) echo_copyout_lsm()
1283 for (i = 0, p = lsm->lsm_oinfo; i < lsm->lsm_stripe_count; i++, p++) { echo_copyout_lsm()
1293 echo_copyin_lsm(struct echo_device *ed, struct lov_stripe_md *lsm, echo_copyin_lsm() argument
1300 if (ulsm_nob < sizeof(*lsm)) echo_copyin_lsm()
1303 if (copy_from_user(lsm, ulsm, sizeof(*lsm))) echo_copyin_lsm()
1306 if (lsm->lsm_stripe_count > ec->ec_nstripes || echo_copyin_lsm()
1307 lsm->lsm_magic != LOV_MAGIC || echo_copyin_lsm()
1308 (lsm->lsm_stripe_size & (~CFS_PAGE_MASK)) != 0 || echo_copyin_lsm()
1309 ((__u64)lsm->lsm_stripe_size * lsm->lsm_stripe_count > ~0UL)) echo_copyin_lsm()
1312 for (i = 0, p = lsm->lsm_oinfo; i < lsm->lsm_stripe_count; i++, p++) { echo_copyin_lsm()
1327 struct lov_stripe_md *lsm = NULL; echo_create_object() local
1338 rc = echo_alloc_memmd(ed, &lsm); echo_create_object()
1347 rc = echo_copyin_lsm(ed, lsm, ulsm, ulsm_nob); echo_create_object()
1351 if (lsm->lsm_stripe_count == 0) echo_create_object()
1352 lsm->lsm_stripe_count = ec->ec_nstripes; echo_create_object()
1354 if (lsm->lsm_stripe_size == 0) echo_create_object()
1355 lsm->lsm_stripe_size = PAGE_CACHE_SIZE; echo_create_object()
1360 for (i = 0; i < lsm->lsm_stripe_count; i++) { echo_create_object()
1361 if (ostid_id(&lsm->lsm_oinfo[i]->loi_oi) == 0) echo_create_object()
1362 lsm->lsm_oinfo[i]->loi_oi = lsm->lsm_oi; echo_create_object()
1364 lsm->lsm_oinfo[i]->loi_ost_idx = echo_create_object()
1372 lsm->lsm_oi = oa->o_oi; echo_create_object()
1375 if (ostid_id(&lsm->lsm_oi) == 0) echo_create_object()
1376 ostid_set_id(&lsm->lsm_oi, ++last_object_id); echo_create_object()
1383 rc = obd_create(env, ec->ec_exp, oa, &lsm, oti); echo_create_object()
1392 oa->o_oi = lsm->lsm_oi; echo_create_object()
1395 eco = cl_echo_object_find(ed, &lsm); echo_create_object()
1406 obd_destroy(env, ec->ec_exp, oa, lsm, oti, NULL); echo_create_object()
1407 if (lsm) echo_create_object()
1408 echo_free_memmd(ed, &lsm); echo_create_object()
1417 struct lov_stripe_md *lsm = NULL; echo_get_object() local
1427 rc = echo_alloc_memmd(ed, &lsm); echo_get_object()
1431 lsm->lsm_oi = oa->o_oi; echo_get_object()
1433 ostid_set_seq_echo(&lsm->lsm_oi); echo_get_object()
1436 eco = cl_echo_object_find(ed, &lsm); echo_get_object()
1441 if (lsm) echo_get_object()
1442 echo_free_memmd(ed, &lsm); echo_get_object()
1453 echo_get_stripe_off_id(struct lov_stripe_md *lsm, u64 *offp, u64 *idp) echo_get_stripe_off_id() argument
1462 if (lsm->lsm_stripe_count <= 1) echo_get_stripe_off_id()
1466 stripe_size = lsm->lsm_stripe_size; echo_get_stripe_off_id()
1467 stripe_count = lsm->lsm_stripe_count; echo_get_stripe_off_id()
1477 *idp = ostid_id(&lsm->lsm_oinfo[stripe_index]->loi_oi); echo_get_stripe_off_id()
1482 echo_client_page_debug_setup(struct lov_stripe_md *lsm, echo_client_page_debug_setup() argument
1500 echo_get_stripe_off_id(lsm, &stripe_off, &stripe_id); echo_client_page_debug_setup()
1512 static int echo_client_page_debug_check(struct lov_stripe_md *lsm, echo_client_page_debug_check() argument
1531 echo_get_stripe_off_id(lsm, &stripe_off, &stripe_id); echo_client_page_debug_check()
1551 struct lov_stripe_md *lsm = eco->eo_lsm; echo_client_kbrw() local
1570 LASSERT(lsm != NULL); echo_client_kbrw()
1571 LASSERT(ostid_id(&lsm->lsm_oi) == ostid_id(&oa->o_oi)); echo_client_kbrw()
1610 echo_client_page_debug_setup(lsm, pgp->pg, rw, echo_client_kbrw()
1630 vrc = echo_client_page_debug_check(lsm, pgp->pg, echo_client_kbrw()
1650 struct lov_stripe_md *lsm = eco->eo_lsm; echo_client_prep_commit() local
1659 (lsm != NULL && ostid_id(&lsm->lsm_oi) != ostid_id(&oa->o_oi))) echo_client_prep_commit()
1718 echo_client_page_debug_setup(lsm, page, rw, echo_client_prep_commit()
1723 echo_client_page_debug_check(lsm, page, echo_client_prep_commit()
/linux-4.4.14/security/integrity/ima/
H A Dima_policy.c63 } lsm[MAX_LSM_RULES]; member in struct:ima_rule_entry
190 if (!entry->lsm[i].rule) ima_lsm_update_rules()
192 result = security_filter_rule_init(entry->lsm[i].type, ima_lsm_update_rules()
194 entry->lsm[i].args_p, ima_lsm_update_rules()
195 &entry->lsm[i].rule); ima_lsm_update_rules()
196 BUG_ON(!entry->lsm[i].rule); ima_lsm_update_rules()
252 if (!rule->lsm[i].rule) ima_match_rules()
261 rule->lsm[i].type, ima_match_rules()
263 rule->lsm[i].rule, ima_match_rules()
271 rule->lsm[i].type, ima_match_rules()
273 rule->lsm[i].rule, ima_match_rules()
472 if (entry->lsm[lsm_rule].rule) ima_lsm_rule_init()
475 entry->lsm[lsm_rule].args_p = match_strdup(args); ima_lsm_rule_init()
476 if (!entry->lsm[lsm_rule].args_p) ima_lsm_rule_init()
479 entry->lsm[lsm_rule].type = audit_type; ima_lsm_rule_init()
480 result = security_filter_rule_init(entry->lsm[lsm_rule].type, ima_lsm_rule_init()
482 entry->lsm[lsm_rule].args_p, ima_lsm_rule_init()
483 &entry->lsm[lsm_rule].rule); ima_lsm_rule_init()
484 if (!entry->lsm[lsm_rule].rule) { ima_lsm_rule_init()
485 kfree(entry->lsm[lsm_rule].args_p); ima_lsm_rule_init()
801 kfree(entry->lsm[i].args_p); ima_delete_rules()
/linux-4.4.14/drivers/staging/lustre/lustre/lclient/
H A Dlcommon_misc.c54 struct lov_stripe_md lsm = { .lsm_magic = LOV_MAGIC_V3 }; cl_init_ea_size() local
66 lsm.lsm_stripe_count = stripes; cl_init_ea_size()
67 easize = obd_size_diskmd(dt_exp, &lsm); cl_init_ea_size()
71 lsm.lsm_stripe_count = def_stripes; cl_init_ea_size()
72 def_easize = obd_size_diskmd(dt_exp, &lsm); cl_init_ea_size()
H A Dlcommon_cl.c1051 lli->lli_has_smd = lsm_has_objects(md->lsm); cl_file_inode_init()
1190 /* lsm is unreliable after hsm implementation as layout can be changed at
1196 * Notice that the lsm returned by this function may not be valid unless called
1203 inline void ccc_inode_lsm_put(struct inode *inode, struct lov_stripe_md *lsm) ccc_inode_lsm_put() argument
1205 lov_lsm_put(cl_i2info(inode)->lli_clob, lsm); ccc_inode_lsm_put()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
H A Dvvp_object.c150 if (conf->u.coc_md != NULL && conf->u.coc_md->lsm != NULL) { vvp_conf_set()
153 conf->u.coc_md->lsm->lsm_layout_gen); vvp_conf_set()
155 lli->lli_has_smd = lsm_has_objects(conf->u.coc_md->lsm); vvp_conf_set()
156 ll_layout_version_set(lli, conf->u.coc_md->lsm->lsm_layout_gen); vvp_conf_set()
H A Drw26.c458 struct lov_stripe_md *lsm; ll_direct_IO_26() local
460 lsm = ccc_inode_lsm_get(inode); ll_direct_IO_26()
461 LASSERT(lsm != NULL); ll_direct_IO_26()
462 lov_stripe_lock(lsm); ll_direct_IO_26()
463 obd_adjust_kms(ll_i2dtexp(inode), lsm, file_offset, 0); ll_direct_IO_26() local
464 lov_stripe_unlock(lsm); ll_direct_IO_26()
465 ccc_inode_lsm_put(inode, lsm); ll_direct_IO_26()
H A Ddcache.c124 struct lov_stripe_md *lsm; find_cbdata() local
133 lsm = ccc_inode_lsm_get(inode); find_cbdata()
134 if (lsm == NULL) find_cbdata()
137 rc = obd_find_cbdata(sbi->ll_dt_exp, lsm, return_if_equal, NULL); find_cbdata()
138 ccc_inode_lsm_put(inode, lsm); find_cbdata()
H A Dllite_lib.c497 if (lmd.lsm) client_common_fill_super()
498 obd_free_memmd(sbi->ll_dt_exp, &lmd.lsm); client_common_fill_super()
1088 * XXX This has to be done before lsm is freed below, because ll_clear_inode()
1089 * cl_object still uses inode lsm. ll_clear_inode()
1186 /* If this inode has objects allocated to it (lsm != NULL), then the OST
1294 struct lov_stripe_md *lsm; ll_setattr_raw() local
1298 lsm = ccc_inode_lsm_get(inode); ll_setattr_raw()
1299 if (lsm && lsm->lsm_pattern & LOV_PATTERN_F_RELEASED) ll_setattr_raw()
1301 ccc_inode_lsm_put(inode, lsm); ll_setattr_raw()
1513 struct lov_stripe_md *lsm = md->lsm; ll_update_inode() local
1516 LASSERT((lsm != NULL) == ((body->valid & OBD_MD_FLEASIZE) != 0)); ll_update_inode()
1517 if (lsm != NULL) { ll_update_inode()
1522 lli->lli_maxbytes = lsm->lsm_maxbytes; ll_update_inode()
1750 struct lov_stripe_md *lsm; ll_iocontrol() local
1773 lsm = ccc_inode_lsm_get(inode); ll_iocontrol()
1774 if (!lsm_has_objects(lsm)) { ll_iocontrol()
1775 ccc_inode_lsm_put(inode, lsm); ll_iocontrol()
1782 ccc_inode_lsm_put(inode, lsm); ll_iocontrol()
1785 oinfo.oi_md = lsm; ll_iocontrol()
1786 oinfo.oi_oa->o_oi = lsm->lsm_oi; ll_iocontrol()
1793 ccc_inode_lsm_put(inode, lsm); ll_iocontrol()
1984 * The lsm can be applied to inode only if it comes with a layout lock ll_prep_inode()
1986 * 1. proc1: mdt returns a lsm but not granting layout ll_prep_inode()
2011 if (md.lsm != NULL) ll_prep_inode()
2012 obd_free_memmd(sbi->ll_dt_exp, &md.lsm); ll_prep_inode()
H A Dfile.c909 /* Fills the obdo with the attributes for the lsm */ ll_lsm_getattr()
910 static int ll_lsm_getattr(struct lov_stripe_md *lsm, struct obd_export *exp, ll_lsm_getattr() argument
917 LASSERT(lsm != NULL); ll_lsm_getattr()
919 oinfo.oi_md = lsm; ll_lsm_getattr()
921 oinfo.oi_oa->o_oi = lsm->lsm_oi; ll_lsm_getattr()
960 struct lov_stripe_md *lsm; ll_inode_getattr() local
963 lsm = ccc_inode_lsm_get(inode); ll_inode_getattr()
964 rc = ll_lsm_getattr(lsm, ll_i2dtexp(inode), ll_inode_getattr()
967 struct ost_id *oi = lsm ? &lsm->lsm_oi : &obdo->o_oi; ll_inode_getattr()
975 ccc_inode_lsm_put(inode, lsm); ll_inode_getattr()
1027 int ll_glimpse_ioctl(struct ll_sb_info *sbi, struct lov_stripe_md *lsm, ll_glimpse_ioctl() argument
1033 rc = ll_lsm_getattr(lsm, sbi->ll_dt_exp, &obdo, 0, 0); ll_glimpse_ioctl()
1261 struct lov_stripe_md *lsm = NULL, *lsm2; ll_lov_recreate() local
1267 lsm = ccc_inode_lsm_get(inode); ll_lov_recreate()
1268 if (!lsm_has_objects(lsm)) { ll_lov_recreate()
1273 lsm_size = sizeof(*lsm) + (sizeof(struct lov_oinfo) * ll_lov_recreate()
1274 (lsm->lsm_stripe_count)); ll_lov_recreate()
1289 memcpy(lsm2, lsm, lsm_size); ll_lov_recreate()
1297 ccc_inode_lsm_put(inode, lsm); ll_lov_recreate()
1339 struct lov_stripe_md *lsm = NULL; ll_lov_setstripe_ea_info() local
1343 lsm = ccc_inode_lsm_get(inode); ll_lov_setstripe_ea_info()
1344 if (lsm != NULL) { ll_lov_setstripe_ea_info()
1345 ccc_inode_lsm_put(inode, lsm); ll_lov_setstripe_ea_info()
1365 ccc_inode_lsm_put(inode, lsm); ll_lov_setstripe_ea_info()
1436 * avoid swab not existent lsm objects */ ll_lov_getstripe_ea_info()
1513 struct lov_stripe_md *lsm; ll_lov_setstripe() local
1519 lsm = ccc_inode_lsm_get(inode); ll_lov_setstripe()
1521 0, lsm, (void *)arg); ll_lov_setstripe()
1522 ccc_inode_lsm_put(inode, lsm); ll_lov_setstripe()
1529 struct lov_stripe_md *lsm; ll_lov_getstripe() local
1532 lsm = ccc_inode_lsm_get(inode); ll_lov_getstripe()
1533 if (lsm != NULL) ll_lov_getstripe()
1535 lsm, (void *)arg); ll_lov_getstripe()
1536 ccc_inode_lsm_put(inode, lsm); ll_lov_getstripe()
1672 struct lov_stripe_md *lsm = NULL; ll_do_fiemap() local
1690 lsm = ccc_inode_lsm_get(inode); ll_do_fiemap()
1691 if (lsm == NULL) ll_do_fiemap()
1697 if (lsm->lsm_stripe_count > 1 && ll_do_fiemap()
1703 fm_key.oa.o_oi = lsm->lsm_oi; ll_do_fiemap()
1724 fiemap, lsm); ll_do_fiemap()
1729 ccc_inode_lsm_put(inode, lsm); ll_do_fiemap()
1849 struct lov_stripe_md *lsm = NULL; ll_data_version() local
1855 lsm = ccc_inode_lsm_get(inode); ll_data_version()
1856 if (!lsm_has_objects(lsm)) { ll_data_version()
1869 rc = ll_lsm_getattr(lsm, sbi->ll_dt_exp, obdo, 0, extent_lock); ll_data_version()
1879 ccc_inode_lsm_put(inode, lsm); ll_data_version()
3406 rc = obd_unpackmd(sbi->ll_dt_exp, &md.lsm, ll_layout_lock_set()
3410 if (md.lsm != NULL) ll_layout_lock_set()
3411 *gen = md.lsm->lsm_layout_gen; ll_layout_lock_set()
3431 if (md.lsm != NULL) ll_layout_lock_set()
3432 obd_free_memmd(sbi->ll_dt_exp, &md.lsm); ll_layout_lock_set()
H A Dxattr.c471 struct lov_stripe_md *lsm; ll_getxattr() local
487 lsm = ccc_inode_lsm_get(inode); ll_getxattr()
488 if (lsm == NULL) { ll_getxattr()
498 rc = obd_packmd(ll_i2dtexp(inode), &lmm, lsm); ll_getxattr()
501 ccc_inode_lsm_put(inode, lsm); ll_getxattr()
H A Dnamei.c123 "%s: apply lsm %p to inode "DFID".\n", ll_iget()
124 ll_get_fsname(sb, NULL, 0), md->lsm, ll_iget()
875 struct lov_stripe_md *lsm = NULL; ll_objects_destroy() local
899 rc = obd_unpackmd(ll_i2dtexp(dir), &lsm, eadata, body->eadatasize); ll_objects_destroy()
904 LASSERT(rc >= sizeof(*lsm)); ll_objects_destroy()
912 oa->o_oi = lsm->lsm_oi; ll_objects_destroy()
922 lsm->lsm_stripe_count); ll_objects_destroy()
929 rc = obd_destroy(NULL, ll_i2dtexp(dir), oa, lsm, &oti, ll_objects_destroy()
933 POSTID(&lsm->lsm_oi), rc); ll_objects_destroy()
935 obd_free_memmd(ll_i2dtexp(dir), &lsm); ll_objects_destroy() local
H A Ddir.c940 * Always modified even if no lsm. */ ll_ioc_copy_start()
996 /* Get lsm for this fid */ ll_ioc_copy_end()
1017 * Always modified even if no lsm. */ ll_ioc_copy_end()
1532 struct lov_stripe_md *lsm; ll_dir_ioctl() local
1577 rc = obd_unpackmd(sbi->ll_dt_exp, &lsm, lmm, lmmsize); ll_dir_ioctl()
1586 rc = ll_glimpse_ioctl(sbi, lsm, &st); ll_dir_ioctl()
1596 obd_free_memmd(sbi->ll_dt_exp, &lsm); ll_dir_ioctl()
H A Dllite_internal.h717 struct lov_stripe_md *lsm, lstat_t *st);
/linux-4.4.14/security/apparmor/
H A DMakefile6 path.o domain.o policy.o policy_unpack.o procattr.o lsm.o \
/linux-4.4.14/drivers/staging/lustre/lustre/include/
H A Dobd.h119 static inline bool lsm_is_released(struct lov_stripe_md *lsm) lsm_is_released() argument
121 return !!(lsm->lsm_pattern & LOV_PATTERN_F_RELEASED); lsm_is_released()
124 static inline bool lsm_has_objects(struct lov_stripe_md *lsm) lsm_has_objects() argument
126 if (lsm == NULL) lsm_has_objects()
128 if (lsm_is_released(lsm)) lsm_has_objects()
135 struct lov_stripe_md lsm; lov_stripe_md_size() local
137 return sizeof(lsm) + stripe_count * sizeof(lsm.lsm_oinfo[0]); lov_stripe_md_size()
153 /* lsm data specific for every OSC. */
160 * level. E.g. it is used for update lsm->lsm_oinfo at every received
971 struct lov_stripe_md *lsm);
1040 int (*o_adjust_kms)(struct obd_export *exp, struct lov_stripe_md *lsm,
1108 struct lov_stripe_md *lsm; member in struct:lustre_md
1228 int (*lsm_unpackmd)(struct lov_obd *lov, struct lov_stripe_md *lsm,
H A Dlclient.h388 void lov_lsm_put(struct cl_object *clobj, struct lov_stripe_md *lsm);
392 void ccc_inode_lsm_put(struct inode *inode, struct lov_stripe_md *lsm);
H A Dobd_class.h415 struct lov_stripe_md *lsm) obd_get_info()
423 lsm); obd_get_info()
1145 struct lov_stripe_md *lsm, u64 size, obd_adjust_kms()
1153 rc = OBP(exp->exp_obd, adjust_kms)(exp, lsm, size, shrink); obd_adjust_kms()
1170 struct lov_stripe_md *lsm, obd_find_cbdata()
1178 rc = OBP(exp->exp_obd, find_cbdata)(exp, lsm, it, data); obd_find_cbdata()
412 obd_get_info(const struct lu_env *env, struct obd_export *exp, __u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) obd_get_info() argument
1144 obd_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, u64 size, int shrink) obd_adjust_kms() argument
1169 obd_find_cbdata(struct obd_export *exp, struct lov_stripe_md *lsm, ldlm_iterator_t it, void *data) obd_find_cbdata() argument
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
H A Dosc_request.c111 struct lov_stripe_md *lsm) osc_packmd()
119 if (*lmmp != NULL && lsm == NULL) { osc_packmd()
123 } else if (unlikely(lsm != NULL && ostid_id(&lsm->lsm_oi) == 0)) { osc_packmd()
133 if (lsm) osc_packmd()
134 ostid_cpu_to_le(&lsm->lsm_oi, &(*lmmp)->lmm_oi); osc_packmd()
439 struct lov_stripe_md *lsm; osc_real_create() local
445 lsm = *ea; osc_real_create()
446 if (!lsm) { osc_real_create()
447 rc = obd_alloc_memmd(exp, &lsm); osc_real_create()
495 /* XXX LOV STACKING: the lsm that is passed to us from LOV does not osc_real_create()
499 lsm->lsm_oi = oa->o_oi; osc_real_create()
500 *ea = lsm; osc_real_create()
518 obd_free_memmd(exp, &lsm); osc_real_create()
1216 struct lov_stripe_md *lsm, u32 page_count, osc_brw_prep_request()
1622 NULL /* lsm unused by osc currently */, osc_brw_redo_request()
2067 static int osc_find_cbdata(struct obd_export *exp, struct lov_stripe_md *lsm, osc_find_cbdata() argument
2074 ostid_build_res_name(&lsm->lsm_oi, &res_id); osc_find_cbdata()
2536 static int osc_getstripe(struct lov_stripe_md *lsm, struct lov_user_md *lump) osc_getstripe() argument
2543 if (!lsm) osc_getstripe()
2574 lmm_objects->l_ost_oi = lsm->lsm_oi; osc_getstripe()
2580 lumk->lmm_oi = lsm->lsm_oi; osc_getstripe()
2684 struct lov_stripe_md *lsm) osc_get_info()
110 osc_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, struct lov_stripe_md *lsm) osc_packmd() argument
1214 osc_brw_prep_request(int cmd, struct client_obd *cli, struct obdo *oa, struct lov_stripe_md *lsm, u32 page_count, struct brw_page **pga, struct ptlrpc_request **reqp, int reserve, int resend) osc_brw_prep_request() argument
2682 osc_get_info(const struct lu_env *env, struct obd_export *exp, u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) osc_get_info() argument
H A Dosc_io.c203 * ll_inode_size_lock(inode, 0); lov_stripe_lock(lsm); osc_page_touch_at()
/linux-4.4.14/security/
H A Dlsm_audit.c406 * @pre_audit: lsm-specific pre-audit callback
407 * @post_audit: lsm-specific post-audit callback
/linux-4.4.14/drivers/staging/lustre/lustre/mdc/
H A Dmdc_request.c487 rc = obd_unpackmd(dt_exp, &md->lsm, lmm, lmmsize); mdc_get_lustre_md()
491 if (rc < sizeof(*md->lsm)) { mdc_get_lustre_md()
493 "lsm size too small: rc < sizeof (*md->lsm) (%d < %d)\n", mdc_get_lustre_md()
494 rc, (int)sizeof(*md->lsm)); mdc_get_lustre_md()
570 if (md->lsm) mdc_get_lustre_md()
571 obd_free_memmd(dt_exp, &md->lsm); mdc_get_lustre_md()
2102 struct lov_stripe_md *lsm) mdc_get_info()
2100 mdc_get_info(const struct lu_env *env, struct obd_export *exp, __u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) mdc_get_info() argument
/linux-4.4.14/Documentation/DocBook/
H A DMakefile12 kernel-api.xml filesystems.xml lsm.xml usb.xml kgdb.xml \
/linux-4.4.14/security/selinux/
H A Dnetlabel.c441 * and not the cached netlabel/lsm attributes */ selinux_netlbl_socket_setsockopt()
H A Dhooks.c879 * if the parent was able to be mounted it clearly had no special lsm selinux_sb_clone_mnt_opts()
/linux-4.4.14/drivers/staging/lustre/lustre/lmv/
H A Dlmv_obd.c2287 struct lov_stripe_md *lsm) lmv_get_info()
2387 struct lov_stripe_md *lsm) lmv_packmd()
2400 if (*lmmp && !lsm) { lmv_packmd()
2412 if (!lsm) lmv_packmd()
2415 lsmp = (struct lmv_stripe_md *)lsm; lmv_packmd()
2285 lmv_get_info(const struct lu_env *env, struct obd_export *exp, __u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) lmv_get_info() argument
2386 lmv_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, struct lov_stripe_md *lsm) lmv_packmd() argument
/linux-4.4.14/security/smack/
H A Dsmack_access.c325 audit_log_format(ab, "lsm=SMACK fn=%s action=%s", smack_log_callback()
/linux-4.4.14/drivers/staging/lustre/lustre/mgc/
H A Dmgc_request.c861 static int mgc_enqueue(struct obd_export *exp, struct lov_stripe_md *lsm, mgc_enqueue() argument
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
H A Dcl_page.c188 * Pages for lsm-less file has no underneath sub-page cl_page_gang_lookup()
/linux-4.4.14/drivers/infiniband/hw/cxgb3/
H A Diwch_cm.c1126 PDBG("%s lsm ack ep %p state %u freeing skb\n", tx_ack()
/linux-4.4.14/fs/nfs/
H A Dsuper.c2529 /* clone any lsm security options from the parent to the new sb */ nfs_clone_sb_security()
/linux-4.4.14/drivers/staging/lustre/lustre/include/lustre/
H A Dlustre_idl.h671 * converting all obdo, lmm, lsm, etc. 64-bit id/seq pairs into proper
/linux-4.4.14/include/linux/
H A Dlsm_hooks.h137 * @opts binary data structure containing all lsm mount data

Completed in 1177 milliseconds