From: Jeff Mahoney <jeffm@suse.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
ReiserFS Mailing List <reiserfs-devel@vger.kernel.org>,
Greg KH <gregkh@suse.de>
Subject: Re: [PATCH] reiserfs: discard prealloc in reiserfs_delete_inode
Date: Fri, 11 Jul 2008 15:23:37 -0400 [thread overview]
Message-ID: <4877B339.4080103@suse.com> (raw)
In-Reply-To: <20080711121850.dfd60681.akpm@linux-foundation.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andrew Morton wrote:
> On Tue, 08 Jul 2008 14:37:06 -0400 Jeff Mahoney <jeffm@suse.com> wrote:
>
>> With the removal of struct file from the xattr code, reiserfs_file_release()
>> isn't used anymore, so the prealloc isn't discarded. This causes hangs
>> later down the line.
>>
>> This patch adds it to reiserfs_delete_inode. In most cases it will be
>> a no-op due to it already having been called, but will avoid hangs with xattrs.
>>
>> Signed-off-by: Jeff Mahoney <jeffm@suse.com>
>> ---
>> fs/reiserfs/inode.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> --- a/fs/reiserfs/inode.c
>> +++ b/fs/reiserfs/inode.c
>> @@ -45,6 +45,8 @@ void reiserfs_delete_inode(struct inode
>> goto out;
>> reiserfs_update_inode_transaction(inode);
>>
>> + reiserfs_discard_prealloc(&th, inode);
>> +
>> err = reiserfs_delete_object(&th, inode);
>>
>> /* Do quota update inside a transaction for journaled quotas. We must do that
>
> Can you please remind us when "the removal of struct file from the xattr
> code" happened?
>
> Because hangs aren't good, and 2.6.25 might want this.
You're right. It was added in 2.6.25-rc7. I'll ping Greg about including
it in the stable tree.
- -Jeff
- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iEYEARECAAYFAkh3szkACgkQLPWxlyuTD7IOyACZAd0+kO4D+bPjx1W1pX/APgl+
eKgAoJ75yKu/IlmHxvlmyWM5DThyKCQL
=BLAB
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2008-07-11 19:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-08 18:37 [PATCH] reiserfs: discard prealloc in reiserfs_delete_inode Jeff Mahoney
2008-07-11 19:18 ` Andrew Morton
2008-07-11 19:23 ` Jeff Mahoney [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4877B339.4080103@suse.com \
--to=jeffm@suse.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=reiserfs-devel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox