mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 04:50:53 +07:00
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>
This commit is contained in:
parent
cc4a41fe55
commit
2978573578
@ -1124,12 +1124,10 @@ static LLIST_HEAD(delayed_mntput_list);
|
||||
static void delayed_mntput(struct work_struct *unused)
|
||||
{
|
||||
struct llist_node *node = llist_del_all(&delayed_mntput_list);
|
||||
struct llist_node *next;
|
||||
struct mount *m, *t;
|
||||
|
||||
for (; node; node = next) {
|
||||
next = llist_next(node);
|
||||
cleanup_mnt(llist_entry(node, struct mount, mnt_llist));
|
||||
}
|
||||
llist_for_each_entry_safe(m, t, node, mnt_llist)
|
||||
cleanup_mnt(m);
|
||||
}
|
||||
static DECLARE_DELAYED_WORK(delayed_mntput_work, delayed_mntput);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user