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

Commit da1dafca authored by Dmitry Monakhov's avatar Dmitry Monakhov Committed by Theodore Ts'o
Browse files

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



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

Signed-off-by: default avatarDmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent f39490bc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3438,6 +3438,9 @@ static ssize_t ext4_ind_direct_IO(int rw, struct kiocb *iocb,
			 * but cannot extend i_size. Bail out and pretend
			 * the write failed... */
			ret = PTR_ERR(handle);
			if (inode->i_nlink)
				ext4_orphan_del(NULL, inode);

			goto out;
		}
		if (inode->i_nlink)