Skip to content

Commit 3386183

Browse files
author
Al Viro
committed
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 <[email protected]>
1 parent df65f16 commit 3386183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nilfs2/segment.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2790,7 +2790,7 @@ int nilfs_attach_log_writer(struct super_block *sb, struct nilfs_root *root)
27902790
if (!nilfs->ns_writer)
27912791
return -ENOMEM;
27922792

2793-
inode_attach_wb(nilfs->ns_bdev->bd_inode, NULL);
2793+
inode_attach_wb(nilfs->ns_bdev->bd_mapping->host, NULL);
27942794

27952795
err = nilfs_segctor_start_thread(nilfs->ns_writer);
27962796
if (unlikely(err))

0 commit comments

Comments
 (0)