···262 /* stick the duplicate mount on the same expiry list263 * as the original if that was on one */264 if (flag & CL_EXPIRE) {265- spin_lock(&vfsmount_lock);266 if (!list_empty(&old->mnt_expire))267 list_add(&mnt->mnt_expire, &old->mnt_expire);268- spin_unlock(&vfsmount_lock);269 }270 }271 return mnt;···1125 if (err)1126 goto out1;11271128- spin_lock(&vfsmount_lock);1129 /* if the mount is moved, it should no longer be expire1130 * automatically */1131 list_del_init(&old_nd.path.mnt->mnt_expire);1132- spin_unlock(&vfsmount_lock);1133out1:1134 mutex_unlock(&nd->path.dentry->d_inode->i_mutex);1135out:···1194 if ((err = graft_tree(newmnt, nd)))1195 goto unlock;11961197- if (fslist) {1198- /* add to the specified expiration list */1199- spin_lock(&vfsmount_lock);1200 list_add_tail(&newmnt->mnt_expire, fslist);1201- spin_unlock(&vfsmount_lock);1202- }1203 up_write(&namespace_sem);1204 return 0;1205
···262 /* stick the duplicate mount on the same expiry list263 * as the original if that was on one */264 if (flag & CL_EXPIRE) {0265 if (!list_empty(&old->mnt_expire))266 list_add(&mnt->mnt_expire, &old->mnt_expire);0267 }268 }269 return mnt;···1127 if (err)1128 goto out1;112901130 /* if the mount is moved, it should no longer be expire1131 * automatically */1132 list_del_init(&old_nd.path.mnt->mnt_expire);01133out1:1134 mutex_unlock(&nd->path.dentry->d_inode->i_mutex);1135out:···1198 if ((err = graft_tree(newmnt, nd)))1199 goto unlock;12001201+ if (fslist) /* add to the specified expiration list */001202 list_add_tail(&newmnt->mnt_expire, fslist);1203+01204 up_write(&namespace_sem);1205 return 0;1206