[patch 07/12] xfs: add xlog_grant_head_init
Mark Tinguely
tinguely at sgi.com
Tue Jan 24 09:43:12 CST 2012
On 01/-10/63 13:59, Christoph Hellwig wrote:
> ---
> fs/xfs/xfs_log.c | 18 ++++++++++++------
> 1 file changed, 12 insertions(+), 6 deletions(-)
>
> Index: xfs/fs/xfs/xfs_log.c
> ===================================================================
> --- xfs.orig/fs/xfs/xfs_log.c 2011-12-11 21:24:39.502740565 +0100
> +++ xfs/fs/xfs/xfs_log.c 2011-12-11 21:28:15.334904636 +0100
> @@ -150,6 +150,15 @@ xlog_grant_add_space(
> } while (head_val != old);
> }
>
> +STATIC void
> +xlog_grant_head_init(
> + struct xlog_grant_head *head)
> +{
> + xlog_assign_grant_head(&head->grant, 1, 0);
> + INIT_LIST_HEAD(&head->waiters);
> + spin_lock_init(&head->lock);
> +}
> +
...
Looks good.
Reviewed-by: Mark Tinguely <tinguely at sgi.com>
More information about the xfs
mailing list