Re: super_operations

Andrew E. Mileski (aem@netcom.ca)
Sun, 16 Nov 1997 17:48:15 -0500 (EST)


> I compared fs.h in 2.0.30 and 2.1.62 scanning for differences in the VFS,
> and I saw this. Why has notify_change been moved in the structure?

Simple - more logical placement.

> struct super_operations {
> void (*read_inode) (struct inode *);
> - int (*notify_change) (struct inode *, struct iattr *);
> void (*write_inode) (struct inode *);
> void (*put_inode) (struct inode *);
> + void (*delete_inode) (struct inode *);
> + int (*notify_change) (struct inode *, struct iattr *);
> void (*put_super) (struct super_block *);
> void (*write_super) (struct super_block *);
> - void (*statfs) (struct super_block *, struct statfs *, int);
> + int (*statfs) (struct super_block *, struct statfs *, int);
> int (*remount_fs) (struct super_block *, int *, char *);
> };

--
Andrew E. Mileski   mailto:aem@netcom.ca