diff options
author | Josh Triplett <josht@us.ibm.com> | 2006-09-29 01:59:29 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 09:18:08 -0700 |
commit | 9c4dbee79d3f46608bec3ac80d392ce6415d2f90 (patch) | |
tree | af5206a2db7a81a94460fb2b36a000006a0a149d /fs/super.c | |
parent | db0b0ead60815155c791e8f479ee4777e7946369 (diff) | |
download | linux-3.10-9c4dbee79d3f46608bec3ac80d392ce6415d2f90.tar.gz linux-3.10-9c4dbee79d3f46608bec3ac80d392ce6415d2f90.tar.bz2 linux-3.10-9c4dbee79d3f46608bec3ac80d392ce6415d2f90.zip |
[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>
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/super.c b/fs/super.c index 5c4c94d5495..6987824d0dc 100644 --- a/fs/super.c +++ b/fs/super.c @@ -199,7 +199,7 @@ EXPORT_SYMBOL(deactivate_super); * success, 0 if we had failed (superblock contents was already dead or * dying when grab_super() had been called). */ -static int grab_super(struct super_block *s) +static int grab_super(struct super_block *s) __releases(sb_lock) { s->s_count++; spin_unlock(&sb_lock); |