aboutsummaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2014-02-03 12:13:07 -0500
committerJeff Layton <jlayton@redhat.com>2014-03-31 08:24:42 -0400
commitb03dfdec0381857db2c01c877b7064f3f5d97d7e (patch)
treeaeb2db0f7d7d75b1ae03bf244401de7a2f99b794 /fs/locks.c
parent6ca10ed8edfd84b1930affdae8ffaa787057296b (diff)
locks: add __acquires and __releases annotations to locks_start and locks_stop
...to make sparse happy. Acked-by: J. Bruce Fields <bfields@fieldses.org> Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/locks.c')
-rw-r--r--fs/locks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/locks.c b/fs/locks.c
index 049a14402ee4..6084f5a32e9c 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -2430,6 +2430,7 @@ static int locks_show(struct seq_file *f, void *v)
2430} 2430}
2431 2431
2432static void *locks_start(struct seq_file *f, loff_t *pos) 2432static void *locks_start(struct seq_file *f, loff_t *pos)
2433 __acquires(&blocked_lock_lock)
2433{ 2434{
2434 struct locks_iterator *iter = f->private; 2435 struct locks_iterator *iter = f->private;
2435 2436
@@ -2448,6 +2449,7 @@ static void *locks_next(struct seq_file *f, void *v, loff_t *pos)
2448} 2449}
2449 2450
2450static void locks_stop(struct seq_file *f, void *v) 2451static void locks_stop(struct seq_file *f, void *v)
2452 __releases(&blocked_lock_lock)
2451{ 2453{
2452 spin_unlock(&blocked_lock_lock); 2454 spin_unlock(&blocked_lock_lock);
2453 lg_global_unlock(&file_lock_lglock); 2455 lg_global_unlock(&file_lock_lglock);