ubifs: Remove ifdefs around CONFIG_UBIFS_ATIME_SUPPORT
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 26 Mar 2019 07:52:32 +0000 (08:52 +0100)
committerRichard Weinberger <richard@nod.at>
Tue, 7 May 2019 19:58:32 +0000 (21:58 +0200)
commite3d73dead4988f3eb8483b28087f3ec0ff9d1398
treea0168b7ebd40d75ff7a4374c46021eb8d7e06284
parenteea2c05d927b031034e222110a4fc34914d97ca4
ubifs: Remove ifdefs around CONFIG_UBIFS_ATIME_SUPPORT

ifdefs reduce readability and compile coverage. This removes the ifdefs
around CONFIG_UBIFS_ATIME_SUPPORT by replacing them with IS_ENABLED()
where applicable. The fs layer would fall back to generic_update_time()
when .update_time doesn't exist. We do this fallback explicitly now.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/dir.c
fs/ubifs/file.c
fs/ubifs/super.c
fs/ubifs/ubifs.h