[Ocfs2-devel] [PATCH 1/9] ocfs2/hb: Exposes list of heartbeating nodes via debugfs
Sunil Mushran
sunil.mushran at oracle.com
Wed Dec 17 10:52:39 PST 2008
The inode arg comes by way of the struct file_operations' open() and
release()
function prototypes. On a typical file system, the inode points to the
entity
that that operation is for. In synthetic file systems, however, the
inode is at
times superfluous because the entity being worked could be fixed. For
example here
we are returning a list of heartbeating nodes. That's the reason it is
not being
used. But that does not mean we can do away with it because we are still
using
file_ops infrastructure.
tristan.ye wrote:
>> +static int o2hb_debug_open(struct inode *inode, struct file *file)
>>
> Just be curious that why the arg 'inode' kept here since it never be
> refered in below func body.
> so as the func o2hb_debug_release()
More information about the Ocfs2-devel
mailing list