From: Brian Rogers <brian@xyzw.org>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: e4defrag and chattr +e warnings
Date: Tue, 25 Aug 2009 23:06:57 -0700 [thread overview]
Message-ID: <4A94D101.9050601@xyzw.org> (raw)
In-Reply-To: <20090825094832.GA16400@skywalker.linux.vnet.ibm.com>
Aneesh Kumar K.V wrote:
> On Mon, Aug 24, 2009 at 03:39:24PM -0700, Brian Rogers wrote:
>
>> Hi all.
>>
>> The first time since boot that I run e4defrag on a directory of
>> significant size, I get this warning in dmesg:
>>
>>
>> This might be happening when it hits files that don't use extents, but I
>> haven't tried e4defrag on a single non-extents file to verify that
>> theory. I've just so far only seen this happen when I defrag a directory
>> where I get the "operation not supported" message.
>>
>> If I use chattr +e to migrate a file to use extents, I get this:
>>
>> [ 470.400044] ------------[ cut here ]------------
>> [ 470.400065] WARNING: at fs/inode.c:1210 generic_delete_inode+0x65/0x16a()
>>
>
>
> Can you try this patch
>
> commit 832ecbfe5f3cf16916552759fbeff085992a66c4
> Author: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> Date: Tue Aug 25 15:14:11 2009 +0530
>
> ext4: unlock the new inode before iput
>
> We need to unlock the new inode before iput. This patch fix the below warning.
>
> [ 470.400044] ------------[ cut here ]------------
> [ 470.400065] WARNING: at fs/inode.c:1210 generic_delete_inode+0x65/0x16a()
> [ 470.400072] Hardware name: N/A
> .....
> ...
> [ 470.400353] Pid: 4451, comm: chattr Not tainted 2.6.31-rc7-red-debug #4
> [ 470.400359] Call Trace:
> [ 470.400372] [<ffffffff81037771>] warn_slowpath_common+0x77/0x8f
> [ 470.400385] [<ffffffff81037798>] warn_slowpath_null+0xf/0x11
> [ 470.400395] [<ffffffff810b7f28>] generic_delete_inode+0x65/0x16a
> [ 470.400405] [<ffffffff810b8044>] generic_drop_inode+0x17/0x1bd
> [ 470.400413] [<ffffffff810b7083>] iput+0x61/0x65
> [ 470.400455] [<ffffffffa003b229>] ext4_ext_migrate+0x5eb/0x66a [ext4]
> [ 470.400492] [<ffffffffa002b1f8>] ext4_ioctl+0x340/0x756 [ext4]
> [ 470.400507] [<ffffffff810b1a91>] vfs_ioctl+0x1d/0x82
> [ 470.400517] [<ffffffff810b1ff0>] do_vfs_ioctl+0x483/0x4c9
> [ 470.400527] [<ffffffff81059c30>] ? trace_hardirqs_on+0xd/0xf
> [ 470.400537] [<ffffffff810b2087>] sys_ioctl+0x51/0x74
> [ 470.400549] [<ffffffff8100ba6b>] system_call_fastpath+0x16/0x1b
> [ 470.400557] ---[ end trace ab85723542352dac ]---
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
>
> diff --git a/fs/ext4/migrate.c b/fs/ext4/migrate.c
> index 313a50b..05361ad 100644
> --- a/fs/ext4/migrate.c
> +++ b/fs/ext4/migrate.c
> @@ -618,7 +618,7 @@ err_out:
> tmp_inode->i_nlink = 0;
>
> ext4_journal_stop(handle);
> -
> + unlock_new_inode(tmp_inode);
> iput(tmp_inode);
>
> return retval;
>
That fixed the chattr-triggered warning. Thanks!
Brian
prev parent reply other threads:[~2009-08-26 6:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-24 22:39 e4defrag and chattr +e warnings Brian Rogers
2009-08-25 9:48 ` Aneesh Kumar K.V
2009-08-26 6:06 ` Brian Rogers [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=4A94D101.9050601@xyzw.org \
--to=brian@xyzw.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=linux-ext4@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).