xfs
[Top] [All Lists]

btree re-write and XFS_WANT_CORRUPTED_GOTO

To: xfs@xxxxxxxxxxx
Subject: btree re-write and XFS_WANT_CORRUPTED_GOTO
From: Peter Watkins <treestem@xxxxxxxxx>
Date: Thu, 19 May 2011 11:59:18 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=lz92jKsFKQr4YjQK47S596XFYw1JmqrSCE0NcOF1tkI=; b=k1yl8pccm8UNL7iSC3/+FV6utvUdrw/2QJa8q465oncQZY2sbmhQHoR+OSOaOK6lhP 5eM1HDvrGAUkF8XPjOua0PqubQ+IaSzJtQYR6k2Oc9UzC5TZxYhy9JPplDLmjfLw0nvu aNonSZviKc7VpctMg4+tsY3hXdoG13DhHeDA0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vm4yeyxo9FTMQqMhi+aMoIuNXj00cyj6cjSlKB60FbjyXcNtw2Y7EVjEv+upI/IWPj 7HSCSRPjSLQIWoxLkY8gX7a9FocTbsQWuCHpi8cSMD7fsI9mp3U7SS+JxzJd4HAkSA/6 xZ4HBjbPvIt6lPXWfdmNyVBqFKFAFyxBrQxDw=
Hello again,

I've occasionally seen the XFS_WANT_CORRUPTED_GOTO error from
xfs_free_extent, usually when cleaning up an unlinked file or
truncating a file.

Is the btree rewrite known to fix any WANT_CORRUPTED problems? More
generally, why was the btree code reworked? I'm in the process of
going from 2.6.27 to 2.6.32 (still old I know), which seems to span
the btree re-write.

Are any particular patches recommended for this problem? I came across
24446fc66fdebbdd8baca0f44fd2a47ad77ba580. It's discussed at
http://oss.sgi.com/archives/xfs/2011-01/msg00266.html  Do any others
come to mind?

Still trying to create a reproducer case, but no luck so far.

Thanks for any comments!

-Peter


Here's an example stack:

XFS internal error XFS_WANT_CORRUPTED_GOTO at line 1545 of file
fs/xfs/xfs_alloc.c.  Caller 0xf8d5bef3
[<f8d85770>] xfs_error_report+0x60/0x70 [xfs]
[<f8d5bef3>] ? xfs_free_extent+0xc3/0xe0 [xfs]
[<f8d5ac21>] xfs_free_ag_extent+0x2e1/0x670 [xfs]
[<f8d5bef3>] ? xfs_free_extent+0xc3/0xe0 [xfs]
[<f8d5bef3>] xfs_free_extent+0xc3/0xe0 [xfs]
[<f8d6dd73>] xfs_bmap_finish+0xf3/0x170 [xfs]
[<f8d8f66c>] xfs_itruncate_finish+0x27c/0x3f0 [xfs]
[<f8dab30c>] xfs_setattr+0xaac/0xc00 [xfs]
[<f8db8942>] xfs_vn_setattr+0x22/0x30 [xfs]
[<c01d5d13>] fnotify_change+0x383/0x3a0
[<c01bd6ac>] do_truncate+0x6c/0x90
[<c03ad96d>] ? _spin_lock+0xd/0x10
[<c01bd88e>] do_sys_truncate+0x1be/0x220
[<c01bdae6>] sys_truncate64+0x16/0x20
[<c0109d73>] sysenter_do_call+0x12/0x2f

<Prev in Thread] Current Thread [Next in Thread>