9
0
Fork 0

fs: Add for_each_fs_device_safe()

We need to be able to umount specific filesystems while iterating all of
them. This helper gives us a safe macro to do so.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
This commit is contained in:
Markus Pargmann 2016-03-08 11:00:47 +01:00 committed by Sascha Hauer
parent 1e6955fdb8
commit 0a3795dd0e
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ struct fs_driver_d {
extern struct list_head fs_device_list;
#define for_each_fs_device(f) list_for_each_entry(f, &fs_device_list, list)
#define for_each_fs_device_safe(tmp, f) list_for_each_entry_safe(f, tmp, &fs_device_list, list)
extern struct bus_type fs_bus;
struct fs_device_d {