summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/log.h
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-05-30 03:27:51 +0200
committerSteven Whitehouse <swhiteho@redhat.com>2008-06-27 10:39:31 +0200
commit2d81afb87972013b43b055b4711dc75fdeeb9ba8 (patch)
tree4fe094c9ec57c6a6fa3e23767facc112f1d9d2df /fs/gfs2/log.h
parent[GFS2] No lock_nolock (diff)
downloadlinux-2d81afb87972013b43b055b4711dc75fdeeb9ba8.tar.xz
linux-2d81afb87972013b43b055b4711dc75fdeeb9ba8.zip
[GFS2] trivial sparse lock annotations
Annotate the &sdp->sd_log_lock. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/log.h')
-rw-r--r--fs/gfs2/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/log.h b/fs/gfs2/log.h
index 771152816508..7c64510ccfd2 100644
--- a/fs/gfs2/log.h
+++ b/fs/gfs2/log.h
@@ -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);
}