writeback: add wb_writeback_work->auto_free
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:13:57 +0000 (17:13 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:36 +0000 (08:33 -0600)
commitac7b19a34f332fdf8b13aac8708b14188fd1fbd2
tree11b2b88cc20bbde17025524a11078f44e0690429
parent001fe6f617b1a352ad29cc3643384b3d8141dc07
writeback: add wb_writeback_work->auto_free

Currently, a wb_writeback_work is freed automatically on completion if
it doesn't have ->done set.  Add wb_writeback_work->auto_free to make
the switch explicit.  This will help cgroup writeback support where
waiting for completion and whether to free automatically don't
necessarily move together.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/fs-writeback.c