Skip to content

Commit b03dfde

Browse files
committed
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>
1 parent 6ca10ed commit b03dfde

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/locks.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,6 +2430,7 @@ static int locks_show(struct seq_file *f, void *v)
24302430
}
24312431

24322432
static void *locks_start(struct seq_file *f, loff_t *pos)
2433+
__acquires(&blocked_lock_lock)
24332434
{
24342435
struct locks_iterator *iter = f->private;
24352436

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

24502451
static void locks_stop(struct seq_file *f, void *v)
2452+
__releases(&blocked_lock_lock)
24512453
{
24522454
spin_unlock(&blocked_lock_lock);
24532455
lg_global_unlock(&file_lock_lglock);

0 commit comments

Comments
 (0)