diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2024-05-02 20:35:57 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2024-05-02 20:35:57 +0200 |
commit | 9a87907de3597a339cc129229d1a20bc7365ea5f (patch) | |
tree | a3a6e2b3784ee2e895ceb5668ca5bb1de754b1fa /fs/overlayfs/file.c | |
parent | ed30a4a51bb196781c8058073ea720133a65596f (diff) | |
download | linux-9a87907de3597a339cc129229d1a20bc7365ea5f.tar.gz linux-9a87907de3597a339cc129229d1a20bc7365ea5f.tar.bz2 linux-9a87907de3597a339cc129229d1a20bc7365ea5f.zip |
ovl: implement tmpfile
Combine inode creation with opening a file.
There are six separate objects that are being set up: the backing inode,
dentry and file, and the overlay inode, dentry and file. Cleanup in case
of an error is a bit of a challenge and is difficult to test, so careful
review is needed.
All tmpfile testcases except generic/509 now run/pass, and no regressions
are observed with full xfstests.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'fs/overlayfs/file.c')
-rw-r--r-- | fs/overlayfs/file.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c index 05536964d37f..1a411cae57ed 100644 --- a/fs/overlayfs/file.c +++ b/fs/overlayfs/file.c @@ -24,9 +24,6 @@ static char ovl_whatisit(struct inode *inode, struct inode *realinode) return 'm'; } -/* No atime modification on underlying */ -#define OVL_OPEN_FLAGS (O_NOATIME) - static struct file *ovl_open_realfile(const struct file *file, const struct path *realpath) { |