All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [tytso@thunk.org: [RFC] [PATCH 1/8] inode_diet: Replace inode.u.generic_ip with inode.i_private]
@ 2006-06-19 15:48 Joel Becker
  2006-06-19 19:39 ` Zach Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Becker @ 2006-06-19 15:48 UTC (permalink / raw)
  To: ocfs2-devel

Folks,
	Here in Ted's inode-diet patch, he renames inode->u.generic_ip
to inode->i_private.  I note that OCFS2 uses generic_ip only one place,
in debug code:

ocfs2_dlm_debug_open():
	1998         osb = (struct ocfs2_super *) inode->u.generic_ip;

However, we never set it!  This leads me to believe this is stale code.
Thoughts.

Joel


-- 

"Only a life lived for others is a life worth while."
							-Albert Einstein  

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
-------------- next part --------------
An embedded message was scrubbed...
From: Theodore Tso <tytso@thunk.org>
Subject: [RFC] [PATCH 1/8] inode_diet: Replace inode.u.generic_ip with
	inode.i_private
Date: Mon, 19 Jun 2006 11:20:04 -0400
Size: 34762
Url: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20060619/1da41851/attachment-0001.mht

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

* [Ocfs2-devel] [tytso@thunk.org: [RFC] [PATCH 1/8] inode_diet: Replace inode.u.generic_ip with inode.i_private]
  2006-06-19 15:48 [Ocfs2-devel] [tytso@thunk.org: [RFC] [PATCH 1/8] inode_diet: Replace inode.u.generic_ip with inode.i_private] Joel Becker
@ 2006-06-19 19:39 ` Zach Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Zach Brown @ 2006-06-19 19:39 UTC (permalink / raw)
  To: ocfs2-devel

> I note that OCFS2 uses generic_ip only one place, in debug code:
> 
> ocfs2_dlm_debug_open():
> 	1998         osb = (struct ocfs2_super *) inode->u.generic_ip;
> 
> However, we never set it!  This leads me to believe this is stale code.

That's the dlm debugging fops getting the osb off of the debugfs inode's
generic_ip which was set with debugfs_create_file().

- z

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

end of thread, other threads:[~2006-06-19 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-19 15:48 [Ocfs2-devel] [tytso@thunk.org: [RFC] [PATCH 1/8] inode_diet: Replace inode.u.generic_ip with inode.i_private] Joel Becker
2006-06-19 19:39 ` Zach Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.