ovl: do not fail because of O_NOATIME 49/261549/1 accepted/tizen/unified/20210723.122825 submit/tizen/20210722.021258
authorMiklos Szeredi <mszeredi@redhat.com>
Mon, 14 Dec 2020 14:26:14 +0000 (15:26 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 21 Jul 2021 05:46:01 +0000 (14:46 +0900)
commit213af95b4919cfefd37fd3bed53c9b342896462a
tree4a5139082e3932c261def4f56ffc37dc5d3b2ecf
parentd9b1612efd214fd2112223b86b8cfcfea1bde4ef
ovl: do not fail because of O_NOATIME

In case the file cannot be opened with O_NOATIME because of lack of
capabilities, then clear O_NOATIME instead of failing.

Remove WARN_ON(), since it would now trigger if O_NOATIME was cleared.
Noticed by Amir Goldstein.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
[sw0312.kim: backport v5.11 mainline commit b6650dab404c to resolve overlayfs file open EPERM fail issue in v5.10]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I9c0c74747bb4a208fc68ca561f740281b2b553fe
fs/overlayfs/file.c