Lines Matching refs:nocow_ctx

3896 	struct scrub_copy_nocow_ctx *nocow_ctx;  in copy_nocow_pages()  local
3899 nocow_ctx = kzalloc(sizeof(*nocow_ctx), GFP_NOFS); in copy_nocow_pages()
3900 if (!nocow_ctx) { in copy_nocow_pages()
3909 nocow_ctx->sctx = sctx; in copy_nocow_pages()
3910 nocow_ctx->logical = logical; in copy_nocow_pages()
3911 nocow_ctx->len = len; in copy_nocow_pages()
3912 nocow_ctx->mirror_num = mirror_num; in copy_nocow_pages()
3913 nocow_ctx->physical_for_dev_replace = physical_for_dev_replace; in copy_nocow_pages()
3914 btrfs_init_work(&nocow_ctx->work, btrfs_scrubnc_helper, in copy_nocow_pages()
3916 INIT_LIST_HEAD(&nocow_ctx->inodes); in copy_nocow_pages()
3918 &nocow_ctx->work); in copy_nocow_pages()
3925 struct scrub_copy_nocow_ctx *nocow_ctx = ctx; in record_inode_for_nocow() local
3934 list_add_tail(&nocow_inode->list, &nocow_ctx->inodes); in record_inode_for_nocow()
3942 struct scrub_copy_nocow_ctx *nocow_ctx = in copy_nocow_pages_worker() local
3944 struct scrub_ctx *sctx = nocow_ctx->sctx; in copy_nocow_pages_worker()
3945 u64 logical = nocow_ctx->logical; in copy_nocow_pages_worker()
3946 u64 len = nocow_ctx->len; in copy_nocow_pages_worker()
3947 int mirror_num = nocow_ctx->mirror_num; in copy_nocow_pages_worker()
3948 u64 physical_for_dev_replace = nocow_ctx->physical_for_dev_replace; in copy_nocow_pages_worker()
3975 record_inode_for_nocow, nocow_ctx); in copy_nocow_pages_worker()
3987 while (!list_empty(&nocow_ctx->inodes)) { in copy_nocow_pages_worker()
3989 entry = list_first_entry(&nocow_ctx->inodes, in copy_nocow_pages_worker()
3994 entry->root, nocow_ctx); in copy_nocow_pages_worker()
4004 while (!list_empty(&nocow_ctx->inodes)) { in copy_nocow_pages_worker()
4006 entry = list_first_entry(&nocow_ctx->inodes, in copy_nocow_pages_worker()
4019 kfree(nocow_ctx); in copy_nocow_pages_worker()
4069 struct scrub_copy_nocow_ctx *nocow_ctx) in copy_nocow_pages_for_inode() argument
4071 struct btrfs_fs_info *fs_info = nocow_ctx->sctx->dev_root->fs_info; in copy_nocow_pages_for_inode()
4079 u64 len = nocow_ctx->len; in copy_nocow_pages_for_inode()
4109 physical_for_dev_replace = nocow_ctx->physical_for_dev_replace; in copy_nocow_pages_for_inode()
4111 nocow_ctx_logical = nocow_ctx->logical; in copy_nocow_pages_for_inode()
4136 nocow_ctx->mirror_num); in copy_nocow_pages_for_inode()
4167 err = write_page_nocow(nocow_ctx->sctx, in copy_nocow_pages_for_inode()