public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/5] Backing Store for sysfs (Overhauled)
@ 2003-11-12 12:23 Maneesh Soni
  2003-11-12 12:25 ` [RFC 1/5] sysfs-backing-store.patch Maneesh Soni
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Maneesh Soni @ 2003-11-12 12:23 UTC (permalink / raw)
  To: Al Viro, Greg KH, Patrick Mochel, Christian Borntraeger
  Cc: LKML, Dipankar Sarma

Hi All,

The following patch set has the overhauled prototype for sysfs backing store
for comments. I have tried to keep all the comments and suggestions from the 
last time in mind.

The main complaint was of over bloating kobject structure which becomes more
painful when kobject is not part of sysfs. So now I have changed the data
structures entirely. There is _no_ increase in the size of kobject structure.
The kobject hierarchy is represented in the form of a new structure called
sysfs_dirent (size 48 - bytes). sysfs_dirent will be there only for kobject
elements (kobject, attribute, attribute group, symlink) which are represented 
in sysfs. kobject structre has just one change. Now kobject has a field
pointing to its sysfs_dirent instead of dentry.

struct sysfs_dirent {
        struct list_head        s_sibling;
        struct list_head        s_children;
        void                    * s_element;
        struct dentry           * s_dentry;
        int                     s_type;
        struct rw_semaphore     s_rwsem;
};

The concept is still the same that in this prototype also we create dentry and 
inode on the fly when they are first looked up. This is done for both leaf or 
non-leaf dentries. The generic nature of sysfs_dirent makes it easy to do for 
both leaf or non-leaf dentries. 

Please review the patches following this posting. For testing apply all
the patches as they are splitted just for review.

Thanks
Maneesh

-- 
Maneesh Soni
Linux Technology Center, 
IBM Software Lab, Bangalore, India
email: maneesh@in.ibm.com
Phone: 91-80-5044999 Fax: 91-80-5268553
T/L : 9243696

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-11-13 19:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-12 12:23 [RFC 0/5] Backing Store for sysfs (Overhauled) Maneesh Soni
2003-11-12 12:25 ` [RFC 1/5] sysfs-backing-store.patch Maneesh Soni
2003-11-12 12:25   ` [RFC 2/5] sysfs-dir.patch Maneesh Soni
2003-11-12 12:25     ` [RFC 3/5] sysfs-file.patch Maneesh Soni
2003-11-12 12:26       ` [RFC 4/5] sysfs-attr_group.patch Maneesh Soni
2003-11-12 12:26         ` [RFC 5/5] sysfs-symlink.patch Maneesh Soni
2003-11-12 14:39     ` [RFC 2/5] sysfs-dir.patch viro
2003-11-12 16:00 ` [RFC 0/5] Backing Store for sysfs (Overhauled) Greg KH
2003-11-12 16:27   ` Dipankar Sarma
2003-11-12 16:39     ` Greg KH
2003-11-13 19:34 ` Patrick Mochel
2003-11-13 19:55   ` Dipankar Sarma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox