namespace.c: Don't reinvent the wheel but use existing llist API

Although llist provides proper APIs, they are not used. Make them used.

Signed-off-by: Byungchul Park <byungchul.park@lge.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by Byungchul Park and committed by Al Viro 29785735 cc4a41fe

+3 -5
+3 -5
fs/namespace.c
··· 1124 1124 static void delayed_mntput(struct work_struct *unused) 1125 1125 { 1126 1126 struct llist_node *node = llist_del_all(&delayed_mntput_list); 1127 - struct llist_node *next; 1127 + struct mount *m, *t; 1128 1128 1129 - for (; node; node = next) { 1130 - next = llist_next(node); 1131 - cleanup_mnt(llist_entry(node, struct mount, mnt_llist)); 1132 - } 1129 + llist_for_each_entry_safe(m, t, node, mnt_llist) 1130 + cleanup_mnt(m); 1133 1131 } 1134 1132 static DECLARE_DELAYED_WORK(delayed_mntput_work, delayed_mntput); 1135 1133