Re: [RFC] Slimming down struct inode

Nikita Danilov
2006-06-15T10:13:51Z

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.