diff options
author | Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> | 2009-03-07 13:12:06 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-03-27 14:44:04 -0400 |
commit | 289f00e225a6f60056644e0fd7e4081cb140c631 (patch) | |
tree | 70710d196d03f9a63a1e9034c0d4536833cb2bd6 | |
parent | 945cf2c79f6fbb1b74e3b0ca08f48b6af56ad412 (diff) |
Remove get_init_pts_sb()
With mknod_ptmx() moved to devpts_get_sb(), init_pts_mount() becomes
a wrapper around get_init_pts_sb(). Remove get_init_pts_sb() and
fold code into init_pts_mount().
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/devpts/inode.c | 25 |
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 | */ |
365 | static int get_init_pts_sb(struct file_system_type *fs_type, int flags, | 369 | static 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 | */ | ||
400 | static 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 | |||
412 | static int devpts_get_sb(struct file_system_type *fs_type, | 399 | static 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 | { |