kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* set_super_anon in fs/super.c
@ 2012-10-23 13:03 Abhijit Chandrakant Pawar
  2012-10-23 13:17 ` Rohan Puri
  0 siblings, 1 reply; 6+ messages in thread
From: Abhijit Chandrakant Pawar @ 2012-10-23 13:03 UTC (permalink / raw)
  To: kernelnewbies

I am working on the layered file systems. I came across a function
called set_super_anon. 
This is a callback to the sget function to compare the superblock . This
function accepts two parameters. first is superblock * and second is
void *.  If you look at the definition of this function, the void* is
never used. 
Many filesystem uses this function when they are mounting the
superblock. Some pass NULL and some pass actual data.I have looked till
2.6.31 but there isnt any trace of the usage of second parameter. 

If it is never used then why its added to the function param list?  Is
there any historical reason during the older kernel days? 

Regards,
Abhijit Pawar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121023/26860a3f/attachment.html 

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

end of thread, other threads:[~2012-10-25  5:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-23 13:03 set_super_anon in fs/super.c Abhijit Chandrakant Pawar
2012-10-23 13:17 ` Rohan Puri
2012-10-23 14:00   ` Abhijit Chandrakant Pawar
2012-10-24  8:20     ` Rohan Puri
2012-10-25  4:10       ` Abhijit Pawar
2012-10-25  5:05         ` Rohan Puri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).