]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fs: add lock annotation to grab_super
authorJosh Triplett <josht@us.ibm.com>
Fri, 29 Sep 2006 08:59:29 +0000 (01:59 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:08 +0000 (09:18 -0700)
commit3e688a20bd311273e831d9628f0d37823e6960bd
treeaf5206a2db7a81a94460fb2b36a000006a0a149d
parentd3dc2190f6e392a4c877d3f24c769fbc001ef53e
[PATCH] fs: add lock annotation to grab_super

grab_super gets called with sb_lock held, and releases it.  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 function 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/super.c