From: Jeff Layton <jlayton@redhat.com>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Matthew Wilcox <matthew@wil.cx>
Subject: [PATCH 3/3] locks: add __acquires and __releases annotations to locks_start and locks_stop
Date: Wed, 14 Aug 2013 08:25:49 -0400 [thread overview]
Message-ID: <1376483149-7633-4-git-send-email-jlayton@redhat.com> (raw)
In-Reply-To: <1376483149-7633-1-git-send-email-jlayton@redhat.com>
...to make sparse happy.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
fs/locks.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/locks.c b/fs/locks.c
index b1e5bfe..b1e321e 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -2390,6 +2390,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;
@@ -2408,6 +2409,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);
--
1.8.3.1
prev parent reply other threads:[~2013-08-14 12:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-14 12:25 [PATCH 0/3] locks: trivial locks.c patches Jeff Layton
2013-08-14 12:25 ` [PATCH 1/3] locks: clean up comment typo Jeff Layton
2013-08-14 12:25 ` [PATCH 2/3] locks: remove "inline" qualifier from fl_link manipulation functions Jeff Layton
2013-08-14 12:25 ` Jeff Layton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1376483149-7633-4-git-send-email-jlayton@redhat.com \
--to=jlayton@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=viro@ZenIV.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).