Lines Matching refs:ctx

99 			   struct btrfs_log_ctx *ctx);
139 struct btrfs_log_ctx *ctx)
177 if (ctx && !ctx->logging_new_name) {
179 list_add_tail(&ctx->list, &root->log_ctxs[index]);
180 ctx->log_transid = root->log_transid;
3019 struct btrfs_log_ctx *ctx)
3021 if (!ctx)
3025 list_del_init(&ctx->list);
3036 struct btrfs_log_ctx *ctx;
3039 list_for_each_entry_safe(ctx, safe, &root->log_ctxs[index], list) {
3040 list_del_init(&ctx->list);
3041 ctx->log_ret = error;
3060 struct btrfs_root *root, struct btrfs_log_ctx *ctx)
3075 log_transid = ctx->log_transid;
3078 return ctx->log_ret;
3085 return ctx->log_ret;
3582 struct btrfs_log_ctx *ctx,
3720 if (ctx &&
3724 ctx->log_new_dentries = true;
3790 struct btrfs_log_ctx *ctx)
3802 ctx, min_key, &max_key);
4138 struct btrfs_log_ctx *ctx)
4153 list_for_each_entry(ordered, &ctx->ordered_extents, log_list) {
4245 struct btrfs_log_ctx *ctx)
4257 ret = log_extent_csums(trans, inode, log, em, ctx);
4459 struct btrfs_log_ctx *ctx)
4523 ret = log_one_extent(trans, inode, root, em, path, ctx);
4544 list_for_each_entry_safe(ordered, tmp, &ctx->ordered_extents, log_list) {
4927 struct btrfs_log_ctx *ctx,
4973 ctx);
5031 LOG_OTHER_INODE, ctx);
5104 struct btrfs_log_ctx *ctx,
5151 } else if (ret > 0 && ctx &&
5152 other_ino != btrfs_ino(BTRFS_I(ctx->inode))) {
5167 ctx, other_ino, other_parent);
5263 struct btrfs_log_ctx *ctx)
5420 recursive_logging, inode_only, ctx,
5453 ctx);
5469 ctx);
5486 if (!ctx ||
5487 !(S_ISDIR(inode->vfs_inode.i_mode) && ctx->logging_new_name &&
5488 &inode->vfs_inode != ctx->inode)) {
5658 struct btrfs_log_ctx *ctx)
5740 ctx->log_new_dentries = false;
5744 log_mode, ctx);
5751 if (ctx->log_new_dentries) {
5788 struct btrfs_log_ctx *ctx)
5885 if (ctx)
5886 ctx->log_new_dentries = false;
5888 LOG_INODE_ALL, ctx);
5892 if (!ret && ctx && ctx->log_new_dentries)
5894 BTRFS_I(dir_inode), ctx);
5910 struct btrfs_log_ctx *ctx)
5939 LOG_INODE_EXISTS, ctx);
5975 struct btrfs_log_ctx *ctx)
5994 LOG_INODE_EXISTS, ctx);
6013 struct btrfs_log_ctx *ctx)
6026 return log_new_ancestors_fast(trans, inode, parent, ctx);
6081 ret = log_new_ancestors(trans, root, path, ctx);
6103 struct btrfs_log_ctx *ctx)
6145 list_empty(&ctx->ordered_extents)) ||
6151 ret = start_log_trans(trans, root, ctx);
6155 ret = btrfs_log_inode(trans, root, inode, inode_only, ctx);
6172 if (S_ISDIR(inode->vfs_inode.i_mode) && ctx && ctx->log_new_dentries)
6217 ret = btrfs_log_all_parents(trans, inode, ctx);
6222 ret = log_all_new_ancestors(trans, inode, parent, ctx);
6227 ret = log_new_dir_dentries(trans, root, inode, ctx);
6237 btrfs_remove_log_ctx(root, ctx);
6251 struct btrfs_log_ctx *ctx)
6257 LOG_INODE_ALL, ctx);
6526 struct btrfs_log_ctx ctx;
6543 btrfs_init_log_ctx(&ctx, &inode->vfs_inode);
6544 ctx.logging_new_name = true;
6552 btrfs_log_inode_parent(trans, inode, parent, LOG_INODE_EXISTS, &ctx);