aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/devpts/inode.c25
1 files changed, 6 insertions, 19 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
index 58b719006af1..9c775fa4130f 100644
--- a/fs/devpts/inode.c
+++ b/fs/devpts/inode.c
@@ -342,7 +342,11 @@ static int new_pts_mount(struct file_system_type *fs_type, int flags,
342} 342}
343 343
344/* 344/*
345 * get_init_pts_sb() 345 * init_pts_mount()
346 *
347 * Mount or remount the initial kernel mount of devpts. This type of
348 * mount maintains the legacy, single-instance semantics, while the
349 * kernel still allows multiple-instances.
346 * 350 *
347 * This interface is needed to support multiple namespace semantics in 351 * This interface is needed to support multiple namespace semantics in
348 * devpts while preserving backward compatibility of the current 'single- 352 * devpts while preserving backward compatibility of the current 'single-
@@ -362,7 +366,7 @@ static int new_pts_mount(struct file_system_type *fs_type, int flags,
362 * consistently selects the 'single-namespace' superblock even in the 366 * consistently selects the 'single-namespace' superblock even in the
363 * presence of the private namespace (i.e 'newinstance') super-blocks. 367 * presence of the private namespace (i.e 'newinstance') super-blocks.
364 */ 368 */
365static int get_init_pts_sb(struct file_system_type *fs_type, int flags, 369static int init_pts_mount(struct file_system_type *fs_type, int flags,
366 void *data, struct pts_mount_opts *opts, struct vfsmount *mnt) 370 void *data, struct pts_mount_opts *opts, struct vfsmount *mnt)
367{ 371{
368 struct super_block *s; 372 struct super_block *s;
@@ -392,23 +396,6 @@ static int get_init_pts_sb(struct file_system_type *fs_type, int flags,
392 return 0; 396 return 0;
393} 397}
394 398
395/*
396 * Mount or remount the initial kernel mount of devpts. This type of
397 * mount maintains the legacy, single-instance semantics, while the
398 * kernel still allows multiple-instances.
399 */
400static int init_pts_mount(struct file_system_type *fs_type, int flags,
401 void *data, struct pts_mount_opts *opts, struct vfsmount *mnt)
402{
403 int err;
404
405 err = get_init_pts_sb(fs_type, flags, data, opts, mnt);
406 if (err)
407 return err;
408
409 return err;
410}
411
412static int devpts_get_sb(struct file_system_type *fs_type, 399static int devpts_get_sb(struct file_system_type *fs_type,
413 int flags, const char *dev_name, void *data, struct vfsmount *mnt) 400 int flags, const char *dev_name, void *data, struct vfsmount *mnt)
414{ 401{