writeback.c (6f10f7d1b02b1bbc305f88d7696445dd38b13881) | writeback.c (1fae7cf05293d3a2c9e59c1bc59372322386467c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * background writeback - scan btree for dirty data and write it to the backing 4 * device 5 * 6 * Copyright 2010, 2011 Kent Overstreet <kent.overstreet@gmail.com> 7 * Copyright 2012 Google, Inc. 8 */ --- 236 unchanged lines hidden (view full) --- 245 bio->bi_iter.bi_size = KEY_SIZE(&w->key) << 9; 246 bio->bi_private = w; 247 bch_bio_map(bio, NULL); 248} 249 250static void dirty_io_destructor(struct closure *cl) 251{ 252 struct dirty_io *io = container_of(cl, struct dirty_io, cl); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * background writeback - scan btree for dirty data and write it to the backing 4 * device 5 * 6 * Copyright 2010, 2011 Kent Overstreet <kent.overstreet@gmail.com> 7 * Copyright 2012 Google, Inc. 8 */ --- 236 unchanged lines hidden (view full) --- 245 bio->bi_iter.bi_size = KEY_SIZE(&w->key) << 9; 246 bio->bi_private = w; 247 bch_bio_map(bio, NULL); 248} 249 250static void dirty_io_destructor(struct closure *cl) 251{ 252 struct dirty_io *io = container_of(cl, struct dirty_io, cl); |
253 |
|
253 kfree(io); 254} 255 256static void write_dirty_finish(struct closure *cl) 257{ 258 struct dirty_io *io = container_of(cl, struct dirty_io, cl); 259 struct keybuf_key *w = io->bio.bi_private; 260 struct cached_dev *dc = io->dc; --- 549 unchanged lines hidden --- | 254 kfree(io); 255} 256 257static void write_dirty_finish(struct closure *cl) 258{ 259 struct dirty_io *io = container_of(cl, struct dirty_io, cl); 260 struct keybuf_key *w = io->bio.bi_private; 261 struct cached_dev *dc = io->dc; --- 549 unchanged lines hidden --- |