diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-03-01 23:15:02 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-03-01 23:15:02 -0500 |
commit | da1dafca84413145f5ac59998b4cdd06fb89f721 (patch) | |
tree | 60582ee94c6867f234bb15bb18af8dd9be4f1693 /fs/ext4 | |
parent | f39490bcd1691d65dc33689222a12e1fc13dd824 (diff) |
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index edb7edc99f71..427f4690ad6d 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -3438,6 +3438,9 @@ retry: | |||
3438 | * but cannot extend i_size. Bail out and pretend | 3438 | * but cannot extend i_size. Bail out and pretend |
3439 | * the write failed... */ | 3439 | * the write failed... */ |
3440 | ret = PTR_ERR(handle); | 3440 | ret = PTR_ERR(handle); |
3441 | if (inode->i_nlink) | ||
3442 | ext4_orphan_del(NULL, inode); | ||
3443 | |||
3441 | goto out; | 3444 | goto out; |
3442 | } | 3445 | } |
3443 | if (inode->i_nlink) | 3446 | if (inode->i_nlink) |