Re: [RFC] Slimming down struct inode

From: Nikita Danilov
Date: Thu Jun 15 2006 - 06:13:00 EST


Jan Engelhardt writes:
> >
> >Sorry, but why this operation is needed? Generic code (in fs/*.c)
> >doesn't use ->i_blksize at all. If XFS wants to provide per-inode
> >st_blksize, all it has to do is to store preferred buffer size in its
> >file system specific inode (struct xfs_inode), and use something
> >different from generic_fillattr() as its ->i_op->getattr() callback
> >(xfs_vn_getattr()).
> >
> By the way, are there any significant userspace applications that use
> i_blksize/i_blkbits?
>

cp(1), db(3) or any other using st_blksize field of struct statbuf to
select the size of IO buffer.

>
> Jan Engelhardt
> --

Nikita.
-
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/