diff options
author | Amir Goldstein <amir73il@gmail.com> | 2017-05-16 01:26:49 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-07-04 22:03:18 +0200 |
commit | 15932c415b3ed20bd1c1e05d071b4ad498656280 (patch) | |
tree | 9a5c7e198c8529323c57534720791e232a64ddb4 /fs/overlayfs/util.c | |
parent | b9ac5c274b8c9d642567022c0e319bca4db31956 (diff) | |
download | linux-15932c415b3ed20bd1c1e05d071b4ad498656280.tar.gz linux-15932c415b3ed20bd1c1e05d071b4ad498656280.tar.bz2 linux-15932c415b3ed20bd1c1e05d071b4ad498656280.zip |
ovl: defer upper dir lock to tempfile link
On copy up of regular file using an O_TMPFILE, lock upper dir only
before linking the tempfile in place.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/util.c')
-rw-r--r-- | fs/overlayfs/util.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/overlayfs/util.c b/fs/overlayfs/util.c index 22ed51f80e58..c80b4bf1e64f 100644 --- a/fs/overlayfs/util.c +++ b/fs/overlayfs/util.c @@ -236,7 +236,6 @@ void ovl_inode_update(struct inode *inode, struct dentry *upperdentry) { struct inode *upperinode = d_inode(upperdentry); - WARN_ON(!inode_is_locked(upperdentry->d_parent->d_inode)); WARN_ON(OVL_I(inode)->__upperdentry); /* |