[PATCH 29/60] xfs: consolidate xfs_utils.c

Christoph Hellwig hch at infradead.org
Wed Jun 19 04:40:28 CDT 2013


> +/*
> + * Allocates a new inode from disk and return a pointer to the
> + * incore copy. This routine will internally commit the current
> + * transaction and allocate a new one if the Space Manager needed
> + * to do an allocation to replenish the inode free-list.
> + *
> + * This routine is designed to be called from xfs_create and
> + * xfs_create_dir.

xfs_create_dir is long gone.  I suspect it's best to just kill that
sentence.

> +/*
> + * Decrement the link count on an inode & log the change.
> + * If this causes the link count to go to zero, initiate the
> + * logging activity required to truncate a file.
> + */
> +int				/* error */
> +xfs_droplink(

Can be static now.

> +/*
> + * Increment the link count on an inode & log the change.
> + */
> +int
> +xfs_bumplink(

Same here.



More information about the xfs mailing list