mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Make relatime default
Change the default behaviour of the kernel to use relatime for all filesystems. This can be overridden with the "strictatime" mount option. Signed-off-by: Matthew Garrett <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d0adde574b
commit
0a1c01c947
1 changed files with 3 additions and 2 deletions
|
|
@ -1920,6 +1920,9 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
|
|||
if (data_page)
|
||||
((char *)data_page)[PAGE_SIZE - 1] = 0;
|
||||
|
||||
/* Default to relatime */
|
||||
mnt_flags |= MNT_RELATIME;
|
||||
|
||||
/* Separate the per-mountpoint flags */
|
||||
if (flags & MS_NOSUID)
|
||||
mnt_flags |= MNT_NOSUID;
|
||||
|
|
@ -1931,8 +1934,6 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
|
|||
mnt_flags |= MNT_NOATIME;
|
||||
if (flags & MS_NODIRATIME)
|
||||
mnt_flags |= MNT_NODIRATIME;
|
||||
if (flags & MS_RELATIME)
|
||||
mnt_flags |= MNT_RELATIME;
|
||||
if (flags & MS_STRICTATIME)
|
||||
mnt_flags &= ~(MNT_RELATIME | MNT_NOATIME);
|
||||
if (flags & MS_RDONLY)
|
||||
|
|
|
|||
Loading…
Reference in a new issue