summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2010-03-01 23:15:02 -0500
committerTheodore Ts'o <tytso@mit.edu>2010-03-01 23:15:02 -0500
commitda1dafca84413145f5ac59998b4cdd06fb89f721 (patch)
tree60582ee94c6867f234bb15bb18af8dd9be4f1693
parentf39490bcd1691d65dc33689222a12e1fc13dd824 (diff)
downloadlinux-3.10-da1dafca84413145f5ac59998b4cdd06fb89f721.tar.gz
linux-3.10-da1dafca84413145f5ac59998b4cdd06fb89f721.tar.bz2
linux-3.10-da1dafca84413145f5ac59998b4cdd06fb89f721.zip
ext4: explicitly remove inode from orphan list after failed direct io
Otherwise non-empty orphan list will be triggered on umount. Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--fs/ext4/inode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index edb7edc99f7..427f4690ad6 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3438,6 +3438,9 @@ retry:
* 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)