xfs
[Top] [All Lists]

Re: [PATCH] Implement ioctl to mark AGs as "don't use/use"

To: Ruben Porras <ruben.porras@xxxxxxxxxxx>
Subject: Re: [PATCH] Implement ioctl to mark AGs as "don't use/use"
From: David Chinner <dgc@xxxxxxx>
Date: Fri, 29 Jun 2007 10:54:17 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <46838CAE.9030808@xxxxxxxxxxx>
References: <1182939325.5313.12.camel@localhost> <20070628045049.GF989688@xxxxxxx> <46838CAE.9030808@xxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Thu, Jun 28, 2007 at 12:25:50PM +0200, Ruben Porras wrote:
> Ok, thank you for the explanation, I think that now I got it right.
> Attached is a new patch.

Only one minor nit:

> @@ -558,6 +559,17 @@
>       ASSERT(args->minlen <= args->maxlen);
>       ASSERT(args->mod < args->prod);
>       ASSERT(args->alignment > 0);
> +
> +     /*
> +      * Return an error if the a.g. should not be allocated.
> +      * This happens normally during a shrink operation.
> +      */
> +     pag = (args->pag);

Kill the () here.

Otherwise, looks good.

OOC, do you have any test code for this? xfs_io would be the tool to
teach this ioctl to....

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


<Prev in Thread] Current Thread [Next in Thread>