linux/fs/overlayfs
Amir Goldstein ad0af7104d vfs: introduce inode 'inuse' lock
Added an i_state flag I_INUSE and helpers to set/clear/test the bit.

The 'inuse' lock is an 'advisory' inode lock, that can be used to extend
exclusive create protection beyond parent->i_mutex lock among cooperating
users.

This is going to be used by overlayfs to get exclusive ownership on upper
and work dirs among overlayfs mounts.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-07-04 22:03:16 +02:00
..
copy_up.c ovl: move __upperdentry to ovl_inode 2017-07-04 22:03:16 +02:00
dir.c ovl: move __upperdentry to ovl_inode 2017-07-04 22:03:16 +02:00
inode.c ovl: move impure to ovl_inode 2017-07-04 22:03:16 +02:00
Kconfig ovl: select EXPORTFS 2017-05-15 10:53:07 +02:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: move impure to ovl_inode 2017-07-04 22:03:16 +02:00
overlayfs.h vfs: introduce inode 'inuse' lock 2017-07-04 22:03:16 +02:00
ovl_entry.h ovl: move cache and version to ovl_inode 2017-07-04 22:03:16 +02:00
readdir.c ovl: proper cleanup of workdir 2016-09-01 11:11:59 +02:00
super.c ovl: move cache and version to ovl_inode 2017-07-04 22:03:16 +02:00
util.c vfs: introduce inode 'inuse' lock 2017-07-04 22:03:16 +02:00