Lines Matching refs:ctx
35 static inline void btrfs_init_log_ctx(struct btrfs_log_ctx *ctx, in btrfs_init_log_ctx() argument
38 ctx->log_ret = 0; in btrfs_init_log_ctx()
39 ctx->log_transid = 0; in btrfs_init_log_ctx()
40 ctx->log_new_dentries = false; in btrfs_init_log_ctx()
41 ctx->logging_new_name = false; in btrfs_init_log_ctx()
42 ctx->logging_new_delayed_dentries = false; in btrfs_init_log_ctx()
43 ctx->logged_before = false; in btrfs_init_log_ctx()
44 ctx->inode = inode; in btrfs_init_log_ctx()
45 INIT_LIST_HEAD(&ctx->list); in btrfs_init_log_ctx()
46 INIT_LIST_HEAD(&ctx->ordered_extents); in btrfs_init_log_ctx()
47 INIT_LIST_HEAD(&ctx->conflict_inodes); in btrfs_init_log_ctx()
48 ctx->num_conflict_inodes = 0; in btrfs_init_log_ctx()
49 ctx->logging_conflict_inodes = false; in btrfs_init_log_ctx()
52 static inline void btrfs_release_log_ctx_extents(struct btrfs_log_ctx *ctx) in btrfs_release_log_ctx_extents() argument
57 ASSERT(inode_is_locked(ctx->inode)); in btrfs_release_log_ctx_extents()
59 list_for_each_entry_safe(ordered, tmp, &ctx->ordered_extents, log_list) { in btrfs_release_log_ctx_extents()
77 struct btrfs_root *root, struct btrfs_log_ctx *ctx);
84 struct btrfs_log_ctx *ctx);