summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-12-04 00:02:40 +1100
committerDave Chinner <david@fromorbit.com>2010-12-04 00:02:40 +1100
commitc8a09ff8ca2235bccdaea8a52fbd5349646a8ba4 (patch)
treea06b4fa59672fd6fa9dd884e1e0bc746adc011b6 /fs/xfs/xfs_log.c
parent1c3cb9ec07fabf0c0970adc46fd2a1f09c1186dd (diff)
downloadlinux-c8a09ff8ca2235bccdaea8a52fbd5349646a8ba4.tar.bz2
xfs: convert log grant heads to atomic variables
Convert the log grant heads to atomic64_t types in preparation for converting the accounting algorithms to atomic operations. his patch just converts the variables; the algorithmic changes are in a separate patch for clarity. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r--fs/xfs/xfs_log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index d118bf804480..a1d7d12fc51f 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -47,7 +47,7 @@ STATIC xlog_t * xlog_alloc_log(xfs_mount_t *mp,
xfs_buftarg_t *log_target,
xfs_daddr_t blk_offset,
int num_bblks);
-STATIC int xlog_space_left(struct log *log, int64_t *head);
+STATIC int xlog_space_left(struct log *log, atomic64_t *head);
STATIC int xlog_sync(xlog_t *log, xlog_in_core_t *iclog);
STATIC void xlog_dealloc_log(xlog_t *log);
@@ -100,7 +100,7 @@ STATIC int xlog_iclogs_empty(xlog_t *log);
static void
xlog_grant_sub_space(
struct log *log,
- int64_t *head,
+ atomic64_t *head,
int bytes)
{
int cycle, space;
@@ -119,7 +119,7 @@ xlog_grant_sub_space(
static void
xlog_grant_add_space(
struct log *log,
- int64_t *head,
+ atomic64_t *head,
int bytes)
{
int tmp;
@@ -816,7 +816,7 @@ xlog_assign_tail_lsn(
STATIC int
xlog_space_left(
struct log *log,
- int64_t *head)
+ atomic64_t *head)
{
int free_bytes;
int tail_bytes;