diff --git a/[refs] b/[refs] index cc312a6440cb..65b7ff1d70bd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f39490bcd1691d65dc33689222a12e1fc13dd824 +refs/heads/master: da1dafca84413145f5ac59998b4cdd06fb89f721 diff --git a/trunk/fs/ext4/inode.c b/trunk/fs/ext4/inode.c index edb7edc99f71..427f4690ad6d 100644 --- a/trunk/fs/ext4/inode.c +++ b/trunk/fs/ext4/inode.c @@ -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)