linux_old1/fs/overlayfs
Miklos Szeredi 2ef66b8a03 ovl: add helper to return real file
In the common case we can just use the real file cached in
file->private_data.  There are two exceptions:

1) File has been copied up since open: in this unlikely corner case just
use a throwaway real file for the operation.  If ever this becomes a
perfomance problem (very unlikely, since overlayfs has been doing most fine
without correctly handling this case at all), then we can deal with that by
updating the cached real file.

2) File's f_flags have changed since open: no need to reopen the cached
real file, we can just change the flags there as well.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
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
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: add helper to return real file 2018-07-18 15:44:41 +02:00
inode.c 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