Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01a261e0 authored by Ryusuke Konishi's avatar Ryusuke Konishi
Browse files

nilfs2: fix missing unlock in error path of nilfs_mdt_write_page



This adds a missing unlock of nilfs->ns_writer_mutex in
nilfs_mdt_write_page() function.

Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
parent a9777845
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -412,8 +412,10 @@ nilfs_mdt_write_page(struct page *page, struct writeback_control *wbc)
		return 0; /* Do not request flush for shadow page cache */
	if (!sb) {
		writer = nilfs_get_writer(NILFS_MDT(inode)->mi_nilfs);
		if (!writer)
		if (!writer) {
			nilfs_put_writer(NILFS_MDT(inode)->mi_nilfs);
			return -EROFS;
		}
		sb = writer->s_super;
	}