diff options
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index c5b88100d914..72bb1062bfe7 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -499,7 +499,7 @@ void release_mounts(struct list_head *head) | |||
499 | { | 499 | { |
500 | struct vfsmount *mnt; | 500 | struct vfsmount *mnt; |
501 | while (!list_empty(head)) { | 501 | while (!list_empty(head)) { |
502 | mnt = list_entry(head->next, struct vfsmount, mnt_hash); | 502 | mnt = list_first_entry(head, struct vfsmount, mnt_hash); |
503 | list_del_init(&mnt->mnt_hash); | 503 | list_del_init(&mnt->mnt_hash); |
504 | if (mnt->mnt_parent != mnt) { | 504 | if (mnt->mnt_parent != mnt) { |
505 | struct dentry *dentry; | 505 | struct dentry *dentry; |
@@ -1177,7 +1177,7 @@ static void expire_mount_list(struct list_head *graveyard, struct list_head *mou | |||
1177 | 1177 | ||
1178 | while (!list_empty(graveyard)) { | 1178 | while (!list_empty(graveyard)) { |
1179 | LIST_HEAD(umounts); | 1179 | LIST_HEAD(umounts); |
1180 | mnt = list_entry(graveyard->next, struct vfsmount, mnt_expire); | 1180 | mnt = list_first_entry(graveyard, struct vfsmount, mnt_expire); |
1181 | list_del_init(&mnt->mnt_expire); | 1181 | list_del_init(&mnt->mnt_expire); |
1182 | 1182 | ||
1183 | /* don't do anything if the namespace is dead - all the | 1183 | /* don't do anything if the namespace is dead - all the |