summaryrefslogtreecommitdiffstats
path: root/fs/hugetlbfs
diff options
context:
space:
mode:
authorJosh Triplett <josht@us.ibm.com>2006-09-29 10:59:27 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 18:18:08 +0200
commitddc0a51d2e351985aa542ff650635e2fd62d3f8b (patch)
treee257e32dae1622c83aa720f5b08c10e29af5167f /fs/hugetlbfs
parent[PATCH] fuse: add lock annotations to request_end and fuse_read_interrupt (diff)
downloadlinux-ddc0a51d2e351985aa542ff650635e2fd62d3f8b.tar.xz
linux-ddc0a51d2e351985aa542ff650635e2fd62d3f8b.zip
[PATCH] hugetlbfs: add lock annotation to hugetlbfs_forget_inode()
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>
Diffstat (limited to 'fs/hugetlbfs')
-rw-r--r--fs/hugetlbfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index e025a31b4c64..f5b8f329aca6 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -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;