Skip to content

Commit a9519de

Browse files
gthelentorvalds
authored andcommitted
writeback: fix inode cgroup switching comment
Commit 682aa8e ("writeback: implement unlocked_inode_to_wb transaction and use it for stat updates") refers to inode_switch_wb_work_fn() which never got merged. Switch the comments to inode_switch_wbs_work_fn(). Link: http://lkml.kernel.org/r/[email protected] Fixes: 682aa8e ("writeback: implement unlocked_inode_to_wb transaction and use it for stat updates") Signed-off-by: Greg Thelen <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Acked-by: Tejun Heo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 70516b9 commit a9519de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/linux/backing-dev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ unlocked_inode_to_wb_begin(struct inode *inode, struct wb_lock_cookie *cookie)
365365
rcu_read_lock();
366366

367367
/*
368-
* Paired with store_release in inode_switch_wb_work_fn() and
368+
* Paired with store_release in inode_switch_wbs_work_fn() and
369369
* ensures that we see the new wb if we see cleared I_WB_SWITCH.
370370
*/
371371
cookie->locked = smp_load_acquire(&inode->i_state) & I_WB_SWITCH;

include/linux/fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ static inline void init_sync_kiocb(struct kiocb *kiocb, struct file *filp)
20912091
* I_WB_SWITCH Cgroup bdi_writeback switching in progress. Used to
20922092
* synchronize competing switching instances and to tell
20932093
* wb stat updates to grab the i_pages lock. See
2094-
* inode_switch_wb_work_fn() for details.
2094+
* inode_switch_wbs_work_fn() for details.
20952095
*
20962096
* I_OVL_INUSE Used by overlayfs to get exclusive ownership on upper
20972097
* and work dirs among overlayfs mounts.

0 commit comments

Comments
 (0)