]> err.no Git - linux-2.6/commitdiff
[PATCH] hugetlbfs: add lock annotation to hugetlbfs_forget_inode()
authorJosh Triplett <josht@us.ibm.com>
Fri, 29 Sep 2006 08:59:27 +0000 (01:59 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:08 +0000 (09:18 -0700)
hugetlbfs_forget_inode releases inode_lock.  Add a lock annotation to this
function so that sparse can check callers for lock pairing, and so that
sparse will not complain about this functions since it intentionally uses
the lock in this manner.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/hugetlbfs/inode.c

index e025a31b4c64a9f2584e7e2f5e095aae3d8a353c..f5b8f329aca6d3e3c3b102cc50b1ee55c2663362 100644 (file)
@@ -229,7 +229,7 @@ static void hugetlbfs_delete_inode(struct inode *inode)
        clear_inode(inode);
 }
 
-static void hugetlbfs_forget_inode(struct inode *inode)
+static void hugetlbfs_forget_inode(struct inode *inode) __releases(inode_lock)
 {
        struct super_block *sb = inode->i_sb;