[PATCH 6/7] xfs: remove incorrect sparse annotation for xfs_iget_cache_miss

Christoph Hellwig
2009-11-14T16:17:43Z

[-- Attachment #1: xfs-sparse-fix --]
[-- Type: text/plain, Size: 722 bytes --]

xfs_iget_cache_miss does not get called with the pag_ici_lock held, so
the __releases annotation is incorrect.

Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: xfs/fs/xfs/xfs_iget.c
===================================================================
--- xfs.orig/fs/xfs/xfs_iget.c 2009-11-12 17:13:27.565003964 +0100
+++ xfs/fs/xfs/xfs_iget.c 2009-11-12 17:19:14.801254179 +0100
@@ -293,7 +293,7 @@ xfs_iget_cache_miss(
struct xfs_inode **ipp,
xfs_daddr_t bno,
int flags,
- int lock_flags) __releases(pag->pag_ici_lock)
+ int lock_flags)
{
struct xfs_inode *ip;
int error;