]> git.ipfire.org Git - thirdparty/linux.git/commit
nilfs2: do not call inode_attach_wb() directly
authorRyusuke Konishi <konishi.ryusuke@gmail.com>
Mon, 10 Jun 2024 16:00:29 +0000 (01:00 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 25 Jun 2024 05:25:09 +0000 (22:25 -0700)
commit68142cb628f75a22f12fde9f5c0c69dfc1bdcf47
tree6d7e95b98ddda3068c5484defe081e30168de524
parent25fa5f9923383784bbf2423ccc84f75615e4b12d
nilfs2: do not call inode_attach_wb() directly

Call mark_buffer_dirty() for segment summary and super root block buffers
on the backing device's page cache, thereby indirectly calling
inode_attach_wb().

Then remove the no longer needed call to inode_attach_wb() in
nilfs_attach_log_writer(), resolving the concern about its layer-violating
use.

Link: https://lkml.kernel.org/r/20240610160029.7673-3-konishi.ryusuke@gmail.com
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/segment.c