xfs: convert log grant ticket queues to list heads
authorDave Chinner <dchinner@redhat.com>
Tue, 21 Dec 2010 01:02:25 +0000 (12:02 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 21 Dec 2010 01:02:25 +0000 (12:02 +1100)
commit1054794198e39103cb986618c4c10ec2252b7089
treebc1d6a3eece9385bef892c2df7d6dba6f39d3088
parent9552e7f2f3dd13a7580e488a7a3582332daad4f5
xfs: convert log grant ticket queues to list heads

The grant write and reserve queues use a roll-your-own double linked
list, so convert it to a standard list_head structure and convert
all the list traversals to use list_for_each_entry(). We can also
get rid of the XLOG_TIC_IN_Q flag as we can use the list_empty()
check to tell if the ticket is in a list or not.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/linux-2.6/xfs_trace.h
fs/xfs/xfs_log.c
fs/xfs/xfs_log_priv.h