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

Commit f294d3e7 authored by Eric Sandeen's avatar Eric Sandeen Committed by Jan Kara
Browse files

ext3: explicitly remove inode from orphan list after failed direct io



Otherwise non-empty orphan list will be triggered on umount.

This is just an application of commit da1daf by Dmitry Monakhov
to the same code in ext3.

Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent b3b749b7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1883,6 +1883,8 @@ static ssize_t ext3_direct_IO(int rw, struct kiocb *iocb,
			 * and pretend the write failed... */
			ext3_truncate_failed_direct_write(inode);
			ret = PTR_ERR(handle);
			if (inode->i_nlink)
				ext3_orphan_del(NULL, inode);
			goto out;
		}
		if (inode->i_nlink)