use list_for_each() in fs/namespace.c
PATCH 1/1 use list_for_each() in fs/namespace.c
Use list_for_each() where applicable
From: Domen Puncer <[email protected]>
- for (list = ymf_devs.next; list != &ymf_devs; list = list->next) {
+ list_for_each(list, &ymf_devs) {
pure cosmetic change, defined as a preprocessor macro in:include/linux/list.h
please apply
maks
fs/namespace.c +1 -1
@@ -443,7 +443,7 @@ q->mnt_mountpoint = mnt->mnt_mountpoint; p = mnt; -for (h = mnt->mnt_mounts.next; h != &mnt->mnt_mounts; h = h->next) { +list_for_each (h, &mnt->mnt_mounts) { r = list_entry(h, struct vfsmount, mnt_child);if (!lives_below_in_same_fs (r->mnt_mountpoint, dentry))continue ;