summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.c
diff options
context:
space:
mode:
authorDave Chinner2013-09-02 12:49:36 +0200
committerBen Myers2013-09-10 00:43:05 +0200
commita30b0367978f75a2659c71b33739e5e445a363c8 (patch)
treef5d50ce20e9d81095a701d53712b892c6883eb58 /fs/xfs/xfs_log.c
parentxfs: fix endian warning in xlog_recover_get_buf_lsn() (diff)
downloadkernel-qcow2-linux-a30b0367978f75a2659c71b33739e5e445a363c8.tar.gz
kernel-qcow2-linux-a30b0367978f75a2659c71b33739e5e445a363c8.tar.xz
kernel-qcow2-linux-a30b0367978f75a2659c71b33739e5e445a363c8.zip
xfs: fix some minor sparse warnings
A couple of simple locking annotations and 0 vs NULL warnings. Nothing that changes any code behaviour, just removes build noise. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r--fs/xfs/xfs_log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index 5372d58ef93a..a2dea108071a 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -257,7 +257,8 @@ xlog_grant_head_wait(
struct xlog *log,
struct xlog_grant_head *head,
struct xlog_ticket *tic,
- int need_bytes)
+ int need_bytes) __releases(&head->lock)
+ __acquires(&head->lock)
{
list_add_tail(&tic->t_queue, &head->waiters);