diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-06-20 12:32:59 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-06-20 12:32:59 +0100 |
commit | 82938bc76a20d38b63b843648be63a06da0cc052 (patch) | |
tree | 435a887c450580bfaa85ac31b52f83fb0e2e1e47 | |
parent | aa26072b372ad65252d6f85cd5c75c4cccdb71dc (diff) | |
download | linux-baserock/feature/S2765-default-noatime.tar.gz |
fs: default to noatimebaserock/feature/S2765-default-noatime
-rw-r--r-- | fs/namespace.c | 8 |
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) |