]> git.baikalelectronics.ru Git - kernel.git/commit
Partially revert "locks: fix file locking on overlayfs"
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 18 Jul 2018 13:44:43 +0000 (15:44 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 18 Jul 2018 13:44:43 +0000 (15:44 +0200)
commit3304471c51de82fc39f1b5e35a35072964d1b152
tree92a505a3870fce449fab03cba16631c7cb867dc7
parent8f32044e7fb348cc3485cb911e1df7a8f64be785
Partially revert "locks: fix file locking on overlayfs"

This partially reverts commit fa05214403fc3eb91fa058829d43f63787a5b1c5.

Overlayfs files will now automatically get the correct locks, no need to
hack overlay support in VFS.

It is a partial revert, because it leaves the locks_inode() calls in place
and defines locks_inode() to file_inode().  We could revert those as well,
but it would be unnecessary code churn and it makes sense to document that
we are getting the inode for locking purposes.

Don't revert MS_NOREMOTELOCK yet since that has been part of the userspace
API for some time (though not in a useful way).  Will try to remove
internal flags later when the dust around the new mount API settles.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
fs/locks.c
fs/overlayfs/super.c
include/linux/fs.h