ubifs: introduce UBIFS_ATIME_SUPPORT to ubifs
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Sat, 7 Nov 2015 04:46:11 +0000 (12:46 +0800)
committerRichard Weinberger <richard@nod.at>
Sat, 7 Nov 2015 10:35:08 +0000 (11:35 +0100)
commit8c1c5f263833ec2dc8fd716cf4281265c485d7ad
treeeb2192812a04954d607b587bd563afe8812103c5
parentab92a20bce3b4c21927cc1ae514c482f50ad3487
ubifs: introduce UBIFS_ATIME_SUPPORT to ubifs

To make ubifs support atime flexily, this commit introduces
a Kconfig option named as UBIFS_ATIME_SUPPORT.

With UBIFS_ATIME_SUPPORT=n:
ubifs keeps the full compatibility to no_atime from
the start of ubifs.

=================UBIFS_ATIME_SUPPORT=n=======================
-o - no atime
-o atime - no atime
-o noatime - no atime
-o relatime - no atime
-o strictatime - no atime
-o lazyatime - no atime

With UBIFS_ATIME_SUPPORT=y:
ubifs supports the atime same with other main stream
file systems.
=================UBIFS_ATIME_SUPPORT=y=======================
-o - default behavior (relatime currently)
-o atime - atime support
-o noatime - no atime support
-o relatime - relative atime support
-o strictatime - strict atime support
-o lazyatime - lazy atime support

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/Kconfig
fs/ubifs/dir.c
fs/ubifs/file.c
fs/ubifs/super.c
fs/ubifs/ubifs.h