summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-06-20 12:32:59 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-06-20 12:32:59 +0100
commit82938bc76a20d38b63b843648be63a06da0cc052 (patch)
tree435a887c450580bfaa85ac31b52f83fb0e2e1e47
parentaa26072b372ad65252d6f85cd5c75c4cccdb71dc (diff)
downloadlinux-baserock/feature/S2765-default-noatime.tar.gz
-rw-r--r--fs/namespace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index cfc6d4448aa5..df578f267f44 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -2313,8 +2313,8 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
goto dput_out;
/* Default to relatime unless overriden */
- if (!(flags & MS_NOATIME))
- mnt_flags |= MNT_RELATIME;
+ if (!(flags & MS_RELATIME))
+ mnt_flags |= MNT_NOATIME;
/* Separate the per-mountpoint flags */
if (flags & MS_NOSUID)
@@ -2323,8 +2323,8 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
mnt_flags |= MNT_NODEV;
if (flags & MS_NOEXEC)
mnt_flags |= MNT_NOEXEC;
- if (flags & MS_NOATIME)
- mnt_flags |= MNT_NOATIME;
+ if (flags & MS_RELATIME)
+ mnt_flags |= MNT_RELATIME;
if (flags & MS_NODIRATIME)
mnt_flags |= MNT_NODIRATIME;
if (flags & MS_STRICTATIME)