summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-10-21 12:19:14 +0200
committerChristian Brauner <brauner@kernel.org>2026-10-22 18:17:42 +0200
commit46e66d41fac7268a5035a1e5d3a75eb7243aa83a (patch)
tree98e25a4c12e203f496532b684498d08e01fec7ec /include/linux
parent88c3f9d6145204cfd88e5d9cbc9463ffd892e10a (diff)
parenta396fe9f74ea367ae3fab2dcb70b24e83db9f0cb (diff)
downloadlinux-46e66d41fac7268a5035a1e5d3a75eb7243aa83a.tar.gz
linux-46e66d41fac7268a5035a1e5d3a75eb7243aa83a.zip
Merge patch series "writeback: fix timestamp and dirty-state handling in wb switches"
Julian Sun <sunjunchao@bytedance.com> says: This series fixes two issues when moving inodes between writeback structures: 1. Update dirtied_when rather than dirtied_time_when when inserting an inode at the newest end of the target dirty list. This maintains the list ordering without resetting the lazytime expiration timestamp. 2. Clear the source wb's dirty-I/O state and bandwidth contribution when inode migration leaves its dirty-I/O lists empty. * patches from https://patch.msgid.link/20261016115230.3640770-1-sunjunchao@bytedance.com: writeback: clear old wb dirty state after inode switches writeback: reset dirtied_when when switching wbs Link: https://patch.msgid.link/20261016115230.3640770-1-sunjunchao@bytedance.com Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index a5585872e48c..b5485f2c1f2b 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -815,7 +815,9 @@ struct inode {
/* 32-bit hole */
struct rw_semaphore i_rwsem;
- unsigned long dirtied_when; /* jiffies of first dirtying */
+ /* Timestamp for writeback list ordering and age checks (jiffies). */
+ unsigned long dirtied_when;
+ /* Start time for deciding when lazytime updates need writeback (jiffies). */
unsigned long dirtied_time_when;
struct hlist_node i_hash;