Skip to content

Commit

Permalink
locks: add __acquires and __releases annotations to locks_start and l…
Browse files Browse the repository at this point in the history
…ocks_stop

...to make sparse happy.

Acked-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
  • Loading branch information
Jeff Layton committed Mar 31, 2014
1 parent 6ca10ed commit b03dfde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2430,6 +2430,7 @@ static int locks_show(struct seq_file *f, void *v)
}

static void *locks_start(struct seq_file *f, loff_t *pos)
__acquires(&blocked_lock_lock)
{
struct locks_iterator *iter = f->private;

Expand All @@ -2448,6 +2449,7 @@ static void *locks_next(struct seq_file *f, void *v, loff_t *pos)
}

static void locks_stop(struct seq_file *f, void *v)
__releases(&blocked_lock_lock)
{
spin_unlock(&blocked_lock_lock);
lg_global_unlock(&file_lock_lglock);
Expand Down

0 comments on commit b03dfde

Please sign in to comment.