On Mon, Oct 20, 2008 at 07:23:34PM +0200, Jan Kara wrote:
> Some filesystems would like to keep private information together with each
> dquot. Add callbacks alloc_dquot and destroy_dquot allowing filesystem to
> allocate larger dquots from their private slab in a similar fashion we
> currently allocate inodes.
...
> --- a/include/linux/quota.h
> +++ b/include/linux/quota.h
> @@ -294,6 +294,8 @@ struct dquot_operations {
> int (*free_inode) (const struct inode *, unsigned long);
> int (*transfer) (struct inode *, struct iattr *);
> int (*write_dquot) (struct dquot *); /* Ordinary dquot write
> */
> + struct dquot *(*alloc_dquot)(struct super_block *, int); /*
> Allocate memory for new dquot (can be NULL if no special entries dquot are
> needed) */
> + void (*destroy_dquot)(struct dquot *); /* Free memory for
> dquot */
Probably want to mention that ->destroy_dquot() is optional and
really matches ->alloc_dquot().
Joel
--
"Every day I get up and look through the Forbes list of the richest
people in America. If I'm not there, I go to work."
- Robert Orben
Joel Becker
Principal Software Developer
Oracle
E-mail: [EMAIL PROTECTED]
Phone: (650) 506-8127
_______________________________________________
Ocfs2-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/ocfs2-devel