[lkml]   [2002]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Son of Unbork (1 of 3)

On Sat, 23 Feb 2002, Daniel Phillips wrote:

> Please tell me who wrote this:
> struct super_operations {
> struct inode *(*alloc_inode)(struct super_block *sb);
> void (*destroy_inode)(struct inode *)

I had. With inodes it _does_ provide things that can't be done
without these methods. Namely, common allocation of generic and
fs-private part *on* *the* *fast* *path* *for* *class* *with*
*many* *instances*.

The latter parts are missing in case of superblocks. We don't
allocate hundreds of thousands of superblocks. Moreover, ones
allocated live much longer than normal struct inode.

IOW, common allocation is worthless in this case and that's the
only rationale for ->alloc_inode()/->destroy_inode().

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.041 / U:0.592 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site