From: Harvey Harrison <harvey.harrison@gmail.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Al Viro <viro@ZenIV.linux.org.uk>, LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] jffs2: add sparse annotations for the erase_completion_lock
Date: Thu, 29 May 2008 18:47:44 -0700 [thread overview]
Message-ID: <1212112064.28403.171.camel@brick> (raw)
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
fs/jffs2/gc.c | 2 ++
fs/jffs2/nodemgmt.c | 4 ++++
fs/jffs2/summary.c | 2 ++
3 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/fs/jffs2/gc.c b/fs/jffs2/gc.c
index 090c556..6312a67 100644
--- a/fs/jffs2/gc.c
+++ b/fs/jffs2/gc.c
@@ -39,6 +39,8 @@ static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_era
/* Called with erase_completion_lock held */
static struct jffs2_eraseblock *jffs2_find_gc_block(struct jffs2_sb_info *c)
+__releases(&c->erase_completion_lock)
+__acquires(&c->erase_completion_lock)
{
struct jffs2_eraseblock *ret;
struct list_head *nextlist = NULL;
diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c
index a9bf960..728c8aa 100644
--- a/fs/jffs2/nodemgmt.c
+++ b/fs/jffs2/nodemgmt.c
@@ -204,6 +204,8 @@ static void jffs2_close_nextblock(struct jffs2_sb_info *c, struct jffs2_eraseblo
/* Select a new jeb for nextblock */
static int jffs2_find_nextblock(struct jffs2_sb_info *c)
+__releases(&c->erase_completion_lock)
+__acquires(&c->erase_completion_lock)
{
struct list_head *next;
@@ -269,6 +271,8 @@ static int jffs2_find_nextblock(struct jffs2_sb_info *c)
/* Called with alloc sem _and_ erase_completion_lock */
static int jffs2_do_reserve_space(struct jffs2_sb_info *c, uint32_t minsize,
uint32_t *len, uint32_t sumsize)
+__releases(&c->erase_completion_lock)
+__acquires(&c->erase_completion_lock)
{
struct jffs2_eraseblock *jeb = c->nextblock;
uint32_t reserved_size; /* for summary information at the end of the jeb */
diff --git a/fs/jffs2/summary.c b/fs/jffs2/summary.c
index 629af01..8410b6c 100644
--- a/fs/jffs2/summary.c
+++ b/fs/jffs2/summary.c
@@ -818,6 +818,8 @@ static int jffs2_sum_write_data(struct jffs2_sb_info *c, struct jffs2_eraseblock
/* Write out summary information - called from jffs2_do_reserve_space */
int jffs2_sum_write_sumnode(struct jffs2_sb_info *c)
+__releases(&c->erase_completion_lock)
+__acquires(&c->erase_completion_lock)
{
int datasize, infosize, padsize;
struct jffs2_eraseblock *jeb;
--
1.5.6.rc0.277.g804cf
reply other threads:[~2008-05-30 1:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1212112064.28403.171.camel@brick \
--to=harvey.harrison@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.