]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[GFS2] trivial sparse lock annotations
authorHarvey Harrison <harvey.harrison@gmail.com>
Fri, 30 May 2008 01:27:51 +0000 (18:27 -0700)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 27 Jun 2008 08:39:31 +0000 (09:39 +0100)
Annotate the &sdp->sd_log_lock.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/log.c
fs/gfs2/log.h

index 548264b1836d59d39275180c4ed5a7343eacc2f3..6c6af9f5e3ab58373eb897cb1adf2093481a1295 100644 (file)
@@ -87,6 +87,8 @@ void gfs2_remove_from_ail(struct gfs2_bufdata *bd)
  */
 
 static void gfs2_ail1_start_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
+__releases(&sdp->sd_log_lock)
+__acquires(&sdp->sd_log_lock)
 {
        struct gfs2_bufdata *bd, *s;
        struct buffer_head *bh;
index 7711528165088002a3601de4c57ef101eae755ba..7c64510ccfd250f0b8f45fa8376598cd2b626072 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 static inline void gfs2_log_lock(struct gfs2_sbd *sdp)
+__acquires(&sdp->sd_log_lock)
 {
        spin_lock(&sdp->sd_log_lock);
 }
@@ -32,6 +33,7 @@ static inline void gfs2_log_lock(struct gfs2_sbd *sdp)
  */
 
 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp)
+__releases(&sdp->sd_log_lock)
 {
        spin_unlock(&sdp->sd_log_lock);
 }