Home
last modified time | relevance | path

Searched refs:io_ctl (Results 1 – 1 of 1) sorted by relevance

/fs/btrfs/
Dfree-space-cache.c264 struct io_ctl { struct
275 static int io_ctl_init(struct io_ctl *io_ctl, struct inode *inode, in io_ctl_init() argument
278 memset(io_ctl, 0, sizeof(struct io_ctl)); in io_ctl_init()
279 io_ctl->num_pages = (i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> in io_ctl_init()
281 io_ctl->pages = kzalloc(sizeof(struct page *) * io_ctl->num_pages, in io_ctl_init()
283 if (!io_ctl->pages) in io_ctl_init()
285 io_ctl->root = root; in io_ctl_init()
287 io_ctl->check_crcs = 1; in io_ctl_init()
291 static void io_ctl_free(struct io_ctl *io_ctl) in io_ctl_free() argument
293 kfree(io_ctl->pages); in io_ctl_free()
[all …]