All of lore.kernel.org
 help / color / mirror / Atom feed
* How to locate struct file * from a bio?
@ 2007-01-31 14:34 Eddie Pettis
  2007-01-31 14:44 ` Al Viro
  2007-01-31 15:18 ` Helge Hafting
  0 siblings, 2 replies; 6+ messages in thread
From: Eddie Pettis @ 2007-01-31 14:34 UTC (permalink / raw)
  To: linux-kernel

Short question:  Is it possible to locate the struct file * associated
with a bio?  If so, how?

Longer version:  I am working on a project that requires measuring the
popularity of each file in a filesystem.  I have made several attempts
to locate all the file reads by grepping for ->readpage() and
->readpages() calls, but I am still missing several file reads.  I
have not yet looked for file writes.

I *have* been able to catch every bio access, which leads to my
question.   Is it possible to locate the struct file * associated with
a bio?  If so, how?  Efficiency is not my primary issue right now.
I'm mainly concerned with it "just working."

Thanks in advance!

--

Eddie Pettis
Electrical and Computering Engineering
Purdue University

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

end of thread, other threads:[~2007-01-31 18:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-31 14:34 How to locate struct file * from a bio? Eddie Pettis
2007-01-31 14:44 ` Al Viro
2007-01-31 14:51   ` Al Viro
2007-01-31 15:18 ` Helge Hafting
2007-01-31 18:45   ` Jan Engelhardt
2007-01-31 18:55   ` Eddie Pettis

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.