From b55fbf7f5f14a8a60b4f5bdf1416c25fc4d3e59d Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sun, 19 Feb 2012 18:10:50 +0100 Subject: 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 --- commands/mount.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'commands/mount.c') 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; } -- cgit v1.2.3