diff options
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index f0e353f5bc30..2ca6145f43d6 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -355,14 +355,14 @@ static int show_vfsmnt(struct seq_file *m, void *v) | |||
355 | { MS_SYNCHRONOUS, ",sync" }, | 355 | { MS_SYNCHRONOUS, ",sync" }, |
356 | { MS_DIRSYNC, ",dirsync" }, | 356 | { MS_DIRSYNC, ",dirsync" }, |
357 | { MS_MANDLOCK, ",mand" }, | 357 | { MS_MANDLOCK, ",mand" }, |
358 | { MS_NOATIME, ",noatime" }, | ||
359 | { MS_NODIRATIME, ",nodiratime" }, | ||
360 | { 0, NULL } | 358 | { 0, NULL } |
361 | }; | 359 | }; |
362 | static struct proc_fs_info mnt_info[] = { | 360 | static struct proc_fs_info mnt_info[] = { |
363 | { MNT_NOSUID, ",nosuid" }, | 361 | { MNT_NOSUID, ",nosuid" }, |
364 | { MNT_NODEV, ",nodev" }, | 362 | { MNT_NODEV, ",nodev" }, |
365 | { MNT_NOEXEC, ",noexec" }, | 363 | { MNT_NOEXEC, ",noexec" }, |
364 | { MNT_NOATIME, ",noatime" }, | ||
365 | { MNT_NODIRATIME, ",nodiratime" }, | ||
366 | { 0, NULL } | 366 | { 0, NULL } |
367 | }; | 367 | }; |
368 | struct proc_fs_info *fs_infop; | 368 | struct proc_fs_info *fs_infop; |
@@ -1286,7 +1286,13 @@ long do_mount(char *dev_name, char *dir_name, char *type_page, | |||
1286 | mnt_flags |= MNT_NODEV; | 1286 | mnt_flags |= MNT_NODEV; |
1287 | if (flags & MS_NOEXEC) | 1287 | if (flags & MS_NOEXEC) |
1288 | mnt_flags |= MNT_NOEXEC; | 1288 | mnt_flags |= MNT_NOEXEC; |
1289 | flags &= ~(MS_NOSUID | MS_NOEXEC | MS_NODEV | MS_ACTIVE); | 1289 | if (flags & MS_NOATIME) |
1290 | mnt_flags |= MNT_NOATIME; | ||
1291 | if (flags & MS_NODIRATIME) | ||
1292 | mnt_flags |= MNT_NODIRATIME; | ||
1293 | |||
1294 | flags &= ~(MS_NOSUID | MS_NOEXEC | MS_NODEV | MS_ACTIVE | | ||
1295 | MS_NOATIME | MS_NODIRATIME); | ||
1290 | 1296 | ||
1291 | /* ... and get the mountpoint */ | 1297 | /* ... and get the mountpoint */ |
1292 | retval = path_lookup(dir_name, LOOKUP_FOLLOW, &nd); | 1298 | retval = path_lookup(dir_name, LOOKUP_FOLLOW, &nd); |