/* Allocate a new attribute search context, initialize it with @ni and @mrec, and return it. Return NULL if allocation failed.  */
ntfs_attr_search_ctx* ntfs_attr_get_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec)
/* Allocate a new attribute search context, initialize it with @ni and @mrec, and return it. Return NULL if allocation failed.  */
ntfs_attr_search_ctx* ntfs_attr_get_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec)
{
	ntfs_attr_search_ctx *ctx;
	ctx = kmem_cache_alloc(ntfs_attr_ctx_cache, GFP_NOFS);
	if (ctx)
		ntfs_attr_init_search_ctx(ctx, ni, mrec);
	return ctx;
}