]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Unroll essentials of do_remount_sb() into devpts
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Sat, 7 Mar 2009 18:16:20 +0000 (10:16 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 27 Mar 2009 18:44:03 +0000 (14:44 -0400)
commitfdbf5348661ac9d519164d1489f30cc0384fda58
tree54c944d78f28a2700aa3424322d7d758fbbde25c
parenta3ec947c85ec339884b30ef6a08133e9311fdae1
Unroll essentials of do_remount_sb() into devpts

On remount, devpts fs only needs to parse the mount options. Users cannot
directly create/dirty files in /dev/pts so the MS_RDONLY flag and
shrinking the dcache does not really apply to devpts.

So effectively on remount, devpts only parses the mount options and updates
these options in its super block. As such, we could replace do_remount_sb()
call with a direct parse_mount_options().

Doing so enables subsequent patches to avoid parsing the mount options twice
and simplify the code.

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>
fs/devpts/inode.c