[PATCH] xfs: Update inode alloc comments
Ben Myers
bpm at sgi.com
Fri Nov 2 17:12:44 CDT 2012
Hey Carlos,
On Sat, Oct 20, 2012 at 11:08:19AM -0300, Carlos Maiolino wrote:
> I found some out of date comments while studying the inode allocation code, so I
> believe it's worth to have these comments updated.
>
> It basically rewrites the comment regarding to "call_again" variable, which is
> not used anymore, but instead, callers of xfs_ialloc() decides if it needs to be
> called again relying only if ialloc_context is NULL or not.
>
> Also did some small changes in another comment that I thought to be pertinent
> to the current behaviour of these functions and some alignment on both comments.
>
> Signed-off-by: Carlos Maiolino <cmaiolino at redhat.com>
> ---
> fs/xfs/xfs_ialloc.c | 6 +++---
> fs/xfs/xfs_inode.c | 18 +++++++++---------
> 2 files changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
> index 445bf1a..f1a6046 100644
> --- a/fs/xfs/xfs_ialloc.c
> +++ b/fs/xfs/xfs_ialloc.c
> @@ -876,9 +876,9 @@ error0:
> * This function is designed to be called twice if it has to do an allocation
> * to make more free inodes. On the first call, *IO_agbp should be set to NULL.
> * If an inode is available without having to performn an allocation, an inode
> - * number is returned. In this case, *IO_agbp would be NULL. If an allocation
> - * needes to be done, xfs_dialloc would return the current AGI buffer in
> - * *IO_agbp. The caller should then commit the current transaction, allocate a
> + * number is returned. In this case, *IO_agbp is set to NULL. If an allocation
> + * needes to be done, xfs_dialloc returns the current AGI buffer in *IO_agbp.
needs
Since we're at it.
Looks fine.
Reviewed-by: Ben Myers <bpm at sgi.com>
More information about the xfs
mailing list