[PATCH 4/5] writeback, memcg: Implement cgroup_writeback_by_id()

2019-08-26 Thread Tejun Heo
Implement cgroup_writeback_by_id() which initiates cgroup writeback from bdi and memcg IDs. This will be used by memcg foreign inode flushing. v2: Use wb_get_lookup() instead of wb_get_create() to avoid creating spurious wbs. v3: Interpret 0 @nr as 1.25 * nr_dirty to implement best-effort

Re: [PATCH 4/5] writeback, memcg: Implement cgroup_writeback_by_id()

2019-08-16 Thread Jan Kara
On Thu 15-08-19 12:59:02, Tejun Heo wrote: > Implement cgroup_writeback_by_id() which initiates cgroup writeback > from bdi and memcg IDs. This will be used by memcg foreign inode > flushing. > > Signed-off-by: Tejun Heo Looks good to me. You can add: Reviewed-by: Jan Kara

[PATCH 4/5] writeback, memcg: Implement cgroup_writeback_by_id()

2019-08-15 Thread Tejun Heo
Implement cgroup_writeback_by_id() which initiates cgroup writeback from bdi and memcg IDs. This will be used by memcg foreign inode flushing. Signed-off-by: Tejun Heo --- fs/fs-writeback.c | 67 ++ include/linux/writeback.h |2 + 2 file