diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-19 18:10:50 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-03-17 18:16:03 +0100 |
commit | b55fbf7f5f14a8a60b4f5bdf1416c25fc4d3e59d (patch) | |
tree | c1347f0240f41d11fe1129bff61e3f080c6f1742 /commands/mount.c | |
parent | 4b4bfcc0bf02f4da89c3f24758c3b9b07e10c8d2 (diff) | |
download | barebox-b55fbf7f5f14a8a60b4f5bdf1416c25fc4d3e59d.tar.gz |
fs: drop struct mtab_entry
every struct fs_device_d contains a struct mtab_entry, so they
have a 1:1 relationship. Instead of having to use container_of
to get from a struct mtab_entry to a struct fs_device_d we can
better embed the members of struct mtab_entry into struct fs_device_d
directly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/mount.c')
-rw-r--r-- | commands/mount.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/commands/mount.c b/commands/mount.c index dd1ae6305d..b32faef709 100644 --- a/commands/mount.c +++ b/commands/mount.c @@ -33,14 +33,14 @@ static int do_mount(int argc, char *argv[]) { int ret = 0; - struct mtab_entry *entry; + struct fs_device_d *fsdev; if (argc == 1) { - for_each_mtab_entry(entry) { + for_each_fs_device(fsdev) { printf("%s on %s type %s\n", - entry->parent_device ? dev_name(entry->parent_device) : "none", - entry->path, - entry->dev->name); + fsdev->parent_device ? dev_name(fsdev->parent_device) : "none", + fsdev->path, + fsdev->dev.name); } return 0; } |