Commit 4a2d20d7 authored by Alessandro Rubini's avatar Alessandro Rubini

sdbfs/kernel: added 'size' field to sdbfs_dev

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 85acbbc2
......@@ -77,6 +77,7 @@ static int fakedev_init(void)
}
d->sd.name = fakedev_fsimg[i];
d->sd.blocksize = 64; /* bah! */
d->sd.size = d->fw->size;
d->sd.ops = &fakedev_ops;
if (sdbfs_register_device(&d->sd) < 0) {
dev_err(&fakedev_device, "can't register %s\n",
......
......@@ -62,7 +62,7 @@ static int sdbmem_parse(char *desc, struct sdbmem *d)
d->address = ioremap(addr, size);
if (!d->address)
return -ENOMEM;
d->datalen = size;
d->sd.size = d->datalen = size;
return 0;
}
......
......@@ -35,6 +35,9 @@ struct sdbfs_dev {
unsigned long entrypoint;
struct sdbfs_dev_ops *ops;
struct list_head list;
unsigned long size;
/* Following is private to the FS code */
unsigned long ino_base;
};
/* flags */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment