Re: [RFC/PATCH 1/2] stackfs: generic functions for obtaining hidden object

From: Josef Sipek
Date: Fri Oct 13 2006 - 09:41:26 EST


On Fri, Oct 13, 2006 at 04:22:09PM +0300, Pekka J Enberg wrote:
> From: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
>
> Add generic functions for obtaining the hidden object (superblock, inode,
> dentry, and dentry mount-point) in a stacked filesystem. As fan-out
> stacked filesystems have multiple hidden objects, we store them in a
> statically allocated array of pointers. The current hard-coded limit
> STACKFS_MAX_BRANCHES is not enough for unionfs (for which users have more
> than 100 branches). That, however, can be fixed later for unionfs.

Most users have 2-3 branches, however there are few that do indeed have 100
or more branches in one Union.

The functions you have allow you to get the values out of the arrays, but
there are no set functions. Otherwise it looks good.

Acked-by: Josef "Jeff" Sipek <jsipek@xxxxxxxxxxxxx>

--
I think there is a world market for maybe five computers.
- Thomas Watson, chairman of IBM, 1943.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/