aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/writeback.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/writeback.h')
-rw-r--r--include/linux/writeback.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h
index fdfd04e348f6..738a0c24874f 100644
--- a/include/linux/writeback.h
+++ b/include/linux/writeback.h
@@ -246,7 +246,8 @@ static inline void wbc_attach_fdatawrite_inode(struct writeback_control *wbc,
246 * 246 *
247 * @bio is a part of the writeback in progress controlled by @wbc. Perform 247 * @bio is a part of the writeback in progress controlled by @wbc. Perform
248 * writeback specific initialization. This is used to apply the cgroup 248 * writeback specific initialization. This is used to apply the cgroup
249 * writeback context. 249 * writeback context. Must be called after the bio has been associated with
250 * a device.
250 */ 251 */
251static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) 252static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio)
252{ 253{
@@ -257,7 +258,7 @@ static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio)
257 * regular writeback instead of writing things out itself. 258 * regular writeback instead of writing things out itself.
258 */ 259 */
259 if (wbc->wb) 260 if (wbc->wb)
260 bio_associate_blkcg(bio, wbc->wb->blkcg_css); 261 bio_associate_blkg_from_css(bio, wbc->wb->blkcg_css);
261} 262}
262 263
263#else /* CONFIG_CGROUP_WRITEBACK */ 264#else /* CONFIG_CGROUP_WRITEBACK */