summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-02-28 00:13:15 -0500
committerTheodore Ts'o <tytso@mit.edu>2023-03-23 10:06:07 -0400
commit3f5d30636d2a188ee3cd22c6fef1ace5304a07bf (patch)
treee89e6521b5431ffe7124b8d40943f0df599a93e9 /scripts/gdb/linux/utils.py
parentc8e8e16dbbf0840e6f41575c3d6158bd331218bc (diff)
ext4: Mark page for delayed dirtying only if it is pinned
In data=journal mode, page should be dirtied only when it has buffers for checkpoint or it is writeably mapped. In the first case, we don't need to do anything special. In the second case, page was already added to the journal by ext4_page_mkwrite() and since transaction commit writeprotects mapped pages again, page should be writeable (and thus dirtied) only while it is part of the running transaction. So nothing needs to be done either. The only special case is when someone pins the page and uses this pin for modifying page data. So recognize this special case and only then mark the page as having data that needs adding to the journal. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Link: https://lore.kernel.org/r/20230228051319.4085470-4-tytso@mit.edu
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions