Message ID | 20200607234118.e6OahXAr8%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | + nilfs2-fix-null-pointer-dereference-at-nilfs_segctor_do_construct.patch added to -mm tree | expand |
--- a/fs/nilfs2/segment.c~nilfs2-fix-null-pointer-dereference-at-nilfs_segctor_do_construct +++ a/fs/nilfs2/segment.c @@ -2780,6 +2780,8 @@ int nilfs_attach_log_writer(struct super if (!nilfs->ns_writer) return -ENOMEM; + inode_attach_wb(nilfs->ns_bdev->bd_inode, NULL); + err = nilfs_segctor_start_thread(nilfs->ns_writer); if (err) { kfree(nilfs->ns_writer);