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

Commit bb5dada7 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: remove dirty inode pages in error path



When getting EIO while handling orphan inodes, we can get some dirty node
pages. Then, f2fs_write_node_pages() called by iput(node_inode) will try
to flush node pages. But in this case, we should prevent to do that, since
we will try again from the start.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent ef68bf11
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1892,6 +1892,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
	dput(sb->s_root);
	sb->s_root = NULL;
free_node_inode:
	truncate_inode_pages_final(NODE_MAPPING(sbi));
	mutex_lock(&sbi->umount_mutex);
	release_ino_entry(sbi, true);
	f2fs_leave_shrinker(sbi);