LWN.net Logo

Creating Linux virtual filesystems

Creating Linux virtual filesystems

Posted Oct 23, 2002 14:59 UTC (Wed) by nick.leroy (guest, #109)
Parent article: Creating Linux virtual filesystems

Nice, informative article. Great!

However, if I'm not mistaken, isn't the following line incorrect, or did I miss something?
inode->u.generic_ip = counter;
Shouldn't it be (note the pointer to counter):
inode->u.generic_ip = &counter;

Once again, great article.

-Nick


(Log in to post comments)

Creating Linux virtual filesystems

Posted Oct 23, 2002 15:16 UTC (Wed) by corbet (editor, #1) [Link]

No, the code is correct - lfs_create_file already gets a pointer to the counter as an argument, there's no need to indirect it again.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds