Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

writeback: fix inode cgroup switching comment

Commit 682aa8e1a6a1 ("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/20190305004617.142590-1-gthelen@google.com
Fixes: 682aa8e1a6a1 ("writeback: implement unlocked_inode_to_wb transaction and use it for stat updates")
Signed-off-by: Greg Thelen <gthelen@google.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Greg Thelen and committed by
Linus Torvalds
a9519def 70516b93

+2 -2
+1 -1
include/linux/backing-dev.h
··· 365 365 rcu_read_lock(); 366 366 367 367 /* 368 - * Paired with store_release in inode_switch_wb_work_fn() and 368 + * Paired with store_release in inode_switch_wbs_work_fn() and 369 369 * ensures that we see the new wb if we see cleared I_WB_SWITCH. 370 370 */ 371 371 cookie->locked = smp_load_acquire(&inode->i_state) & I_WB_SWITCH;
+1 -1
include/linux/fs.h
··· 2091 2091 * I_WB_SWITCH Cgroup bdi_writeback switching in progress. Used to 2092 2092 * synchronize competing switching instances and to tell 2093 2093 * 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. 2095 2095 * 2096 2096 * I_OVL_INUSE Used by overlayfs to get exclusive ownership on upper 2097 2097 * and work dirs among overlayfs mounts.