Home
last modified time | relevance | path

Searched hist:ad0af7104dadccd55cd2b390271677fac142650f (Results 1 – 1 of 1) sorted by relevance

/linux/include/linux/
H A Dfs.hdiff ad0af7104dadccd55cd2b390271677fac142650f Wed Jun 21 14:28:32 CEST 2017 Amir Goldstein <amir73il@gmail.com> 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>