diff options
Diffstat (limited to 'fs/ext4/inode.c')
-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) |