linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What's the "prepare_discard_fn" supposed to do?
@ 2008-10-02 13:45 Chris Worley
  2008-10-02 13:52 ` David Woodhouse
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Worley @ 2008-10-02 13:45 UTC (permalink / raw)
  To: linux-fsdevel, dwmw2

In perusing the "discard-2.6" kernel at infradead.org (great job... I
have a device I'm testing it on, and it's working), I'm unclear on
what I'm supposed to do in the prepare_discard_fn function.

It looks like, if it exists, the the discard bio gets passed to the
normal handler.  Otherwise, it seems to have no duties.  I'm guessing
it's for whatever initialization is needed for the device...  but
checking to be sure.

Thanks,

Chris

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

end of thread, other threads:[~2008-10-10 12:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02 13:45 What's the "prepare_discard_fn" supposed to do? Chris Worley
2008-10-02 13:52 ` David Woodhouse
2008-10-03  6:48   ` Artem Bityutskiy
2008-10-03  6:53     ` David Woodhouse
2008-10-10 12:58     ` Matthew Wilcox

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).