]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Fix sparse warning in xlog_recover_do_efd_trans.
authorDavid Chinner <dgc@sgi.com>
Fri, 23 Nov 2007 05:28:17 +0000 (16:28 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 7 Feb 2008 07:15:29 +0000 (18:15 +1100)
commitf87fed37caf0f85dcbafdcb82ceb03ca8f1eb5b8
tree6a28f5609daaaa7e8b069323c9a19e9cd87772c4
parentec4fa68edd6bb7f9432281df2152f2fc8ef26f0c
[XFS] Fix sparse warning in xlog_recover_do_efd_trans.

Sparse trips over the locking order in xlog_recover_do_efd_trans() when
xfs_trans_delete_ail() drops the ail lock. Because the unlock is
conditional, we need to either annotate with a "fake unlock" or change the
structure of the code so sparse thinks the function always unlocks.

Reordering the code makes it simpler, so do that.

SGI-PV: 972755
SGI-Modid: xfs-linux-melb:xfs-kern:30003a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_log_recover.c