xfs: prevent lockdep false positive in xfs_iget_cache_miss
authorChristoph Hellwig <hch@infradead.org>
Tue, 3 Mar 2009 19:48:35 +0000 (14:48 -0500)
committerFelix Blyakher <felixb@sgi.com>
Fri, 6 Mar 2009 23:34:59 +0000 (17:34 -0600)
commit7d46be4a25fdfb503c20bad60a618adebfe2ac5c
treef2c5eda4725789eef643b931867b1fd6ad6bde70
parentff392c497b43ddedbab5627b53928a654cc5486e
xfs: prevent lockdep false positive in xfs_iget_cache_miss

The inode can't be locked by anyone else as we just created it a few
lines above and it's not been added to any lookup data structure yet.

So use a trylock that must succeed to get around the lockdep warnings.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Alexander Beregalov <a.beregalov@gmail.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/xfs_iget.c