diff options
| -rw-r--r-- | fs/namespace.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index f8893dc6a989..ce82a5b2da12 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
| @@ -1124,12 +1124,10 @@ static LLIST_HEAD(delayed_mntput_list); | |||
| 1124 | static void delayed_mntput(struct work_struct *unused) | 1124 | static void delayed_mntput(struct work_struct *unused) |
| 1125 | { | 1125 | { |
| 1126 | struct llist_node *node = llist_del_all(&delayed_mntput_list); | 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) { | 1129 | llist_for_each_entry_safe(m, t, node, mnt_llist) |
| 1130 | next = llist_next(node); | 1130 | cleanup_mnt(m); |
| 1131 | cleanup_mnt(llist_entry(node, struct mount, mnt_llist)); | ||
| 1132 | } | ||
| 1133 | } | 1131 | } |
| 1134 | static DECLARE_DELAYED_WORK(delayed_mntput_work, delayed_mntput); | 1132 | static DECLARE_DELAYED_WORK(delayed_mntput_work, delayed_mntput); |
| 1135 | 1133 | ||
