nilfs_attach_log_writer(): use ->bd_mapping->host instead of ->bd_inode
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Apr 2024 00:39:55 +0000 (20:39 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 3 May 2024 06:36:55 +0000 (02:36 -0400)
commit338618338233a8567f48f70b228abca626ffb3ed
tree0458dcd4903522493ae755925c783a89b120e3b6
parentdf65f1660b6141f0b051d2439cc99222a6ae865b
nilfs_attach_log_writer(): use ->bd_mapping->host instead of ->bd_inode

I suspect that inode_attach_wb() use is rather unidiomatic, but
that's a separate story - in any case, its use is a few times
per mount *and* the route by which we access that inode is
"the host of address_space a page belongs to".

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nilfs2/segment.c