* Get NFTLrecord reference from mtd_blktrans_dev argument
@ 2011-05-02 5:53 Niraj Kulkarni
0 siblings, 0 replies; only message in thread
From: Niraj Kulkarni @ 2011-05-02 5:53 UTC (permalink / raw)
To: linux-mtd
Hi all,
I've observed that in kernel 2.6.38 (and maybe in previous
versions), in mtd_blktrans_ops callbacks provided by NFTL (nftlcore.c),
reference to NFTLrecord struct is obtained by just typecasting given
mtd_blktrans_dev. Though it works well, it highly position dependent
method and may break for mtd_blktrans_dev struct change. Given that
blktrans_dev struct already have a private field (void *priv) and it is
uninitialized in nftl, is it ok to write a trivial patch to assign
NFTLrecord pointer to mtd_blktrans_dev->priv?
Niraj
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-02 5:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-02 5:53 Get NFTLrecord reference from mtd_blktrans_dev argument Niraj Kulkarni
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.