kernel_optimize_test/fs/overlayfs
Miklos Szeredi d1d04ef857 ovl: stack file ops
Implement file operations on a regular overlay file.  The underlying file
is opened separately and cached in ->private_data.

It might be worth making an exception for such files when accounting in
nr_file to confirm to userspace expectations.  We are only adding a small
overhead (248bytes for the struct file) since the real inode and dentry are
pinned by overlayfs anyway.

This patch doesn't have any effect, since the vfs will use d_real() to find
the real underlying file to open.  The patch at the end of the series will
actually enable this functionality.

AV: make it use open_with_fake_path(), don't mess with override_creds

SzM: still need to mess with override_creds() until no fs uses
current_cred() in their open method.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2018-07-18 15:44:41 +02:00
..
copy_up.c ovl: clean up copy-up error paths 2018-05-31 11:06:11 +02:00
dir.c ovl: copy up times 2018-07-18 15:44:40 +02:00
export.c ovl: Pass argument to ovl_get_inode() in a structure 2018-05-31 11:06:12 +02:00
file.c ovl: stack file ops 2018-07-18 15:44:41 +02:00
inode.c ovl: stack file ops 2018-07-18 15:44:41 +02:00
Kconfig ovl: Kconfig documentation fixes 2018-05-31 11:06:10 +02:00
Makefile ovl: stack file ops 2018-07-18 15:44:41 +02:00
namei.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
overlayfs.h ovl: stack file ops 2018-07-18 15:44:41 +02:00
ovl_entry.h ovl: add support for "xino" mount and config options 2018-04-12 12:04:50 +02:00
readdir.c ovl: fix wrong use of impure dir cache in ovl_iterate() 2018-07-17 16:04:34 +02:00
super.c ovl: deal with overlay files in ovl_d_real() 2018-07-18 15:44:41 +02:00
util.c ovl: copy up inode flags 2018-07-18 15:44:41 +02:00