Lines Matching refs:mrec

44  *	m = ctx->mrec;
47 * you cache ctx->mrec in a variable @m of type MFT_RECORD *.
57 * returned, you need to check IS_ERR(@ctx->mrec) and if 'true' the @ctx
60 * In that case PTR_ERR(@ctx->mrec) will give you the error code for
102 BUG_ON(IS_ERR(ctx->mrec));
205 ctx->mrec = ctx->base_mrec;
206 BUG_ON(!ctx->mrec);
216 ctx->mrec = map_mft_record(
222 * return the error code in ctx->mrec.
228 if (IS_ERR(ctx->mrec)) {
229 if (PTR_ERR(ctx->mrec) ==
241 if (ctx->mrec != old_ctx.mrec) {
242 if (!IS_ERR(ctx->mrec))
244 (u8*)ctx->mrec +
246 (u8*)old_ctx.mrec));
247 old_ctx.mrec = ctx->mrec;
254 * case that IS_ERR(ctx->mrec) is true this means we might lose
417 * m = ctx->mrec;
420 * you cache ctx->mrec in a variable @m of type MFT_RECORD *.
436 * returned, you need to check IS_ERR(@ctx->mrec) and if 'true' the @ctx
439 * In that case PTR_ERR(@ctx->mrec) will give you the error code for
496 if (IS_ERR(ctx->mrec))
497 err = PTR_ERR(ctx->mrec);
532 * mft record specified by @ctx->mrec, beginning at @ctx->attr, for an
550 * @ctx->mrec belongs. This is so we can get at the ntfs volume and hence at
595 u8 *mrec_end = (u8 *)ctx->mrec +
596 le32_to_cpu(ctx->mrec->bytes_allocated);
600 if ((u8 *)a < (u8 *)ctx->mrec)
846 * @ctx->attr will point to the found attribute. @ctx->mrec will point to the
853 * were to be desired. @ctx->mrec will point to the mft record in which
859 * @ctx->mrec (the base mft record) and if there is not enough space, the
888 ctx->base_mrec = ctx->mrec;
1008 ctx->mrec = ctx->base_mrec;
1011 ctx->mrec = map_extent_mft_record(base_ni,
1014 if (IS_ERR(ctx->mrec)) {
1022 err = PTR_ERR(ctx->mrec);
1031 ctx->attr = (ATTR_RECORD*)((u8*)ctx->mrec +
1032 le16_to_cpu(ctx->mrec->attrs_offset));
1035 * ctx->vfs_ino, ctx->mrec, and ctx->attr now point to the
1055 if ((u8*)a < (u8*)ctx->mrec || (u8*)a > (u8*)ctx->mrec +
1056 le32_to_cpu(ctx->mrec->bytes_allocated))
1104 ctx->mrec = ctx->base_mrec;
1122 * @ctx->mrec and @ctx->attr indicate the position at which the
1135 ctx->mrec = ctx->base_mrec;
1136 ctx->attr = (ATTR_RECORD*)((u8*)ctx->mrec +
1137 le16_to_cpu(ctx->mrec->attrs_offset));
1183 * @ctx->mrec. If an attribute list attribute is present, @ctx->al_entry is
1205 BUG_ON(IS_ERR(ctx->mrec));
1223 * @mrec: mft record with which to initialize the search context
1225 * Initialize the attribute search context @ctx with @ni and @mrec.
1228 ntfs_inode *ni, MFT_RECORD *mrec)
1231 .mrec = mrec,
1233 .attr = (ATTR_RECORD*)((u8*)mrec +
1234 le16_to_cpu(mrec->attrs_offset)),
1256 ctx->attr = (ATTR_RECORD*)((u8*)ctx->mrec +
1257 le16_to_cpu(ctx->mrec->attrs_offset));
1274 * @mrec: mft record with which to initialize the search context
1276 * Allocate a new attribute search context, initialize it with @ni and @mrec,
1279 ntfs_attr_search_ctx *ntfs_attr_get_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec)
1285 ntfs_attr_init_search_ctx(ctx, ni, mrec);
1641 m = ctx->mrec;
2047 m = ctx->mrec;
2435 m = ctx->mrec;