From 1270832875ff3484af1d11bb7333c19ee4dc99bf Mon Sep 17 00:00:00 2001 From: Dmitry Monakhov Date: Mon, 1 Mar 2010 23:15:02 -0500 Subject: [PATCH] --- yaml --- r: 185870 b: refs/heads/master c: da1dafca84413145f5ac59998b4cdd06fb89f721 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ext4/inode.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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)