diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2017-07-04 23:03:18 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-07-04 23:03:18 +0300 |
commit | 55acc6618259c8ff0a400a131f0f4b613e96010a (patch) | |
tree | 82f73eccca8d417ec8c77ad1b02dd28748c5c456 /fs/overlayfs/copy_up.c | |
parent | 23f0ab13eaa69b4a351184cbec448be2aad3a3a9 (diff) | |
download | linux-55acc6618259c8ff0a400a131f0f4b613e96010a.tar.xz |
ovl: add flag for upper in ovl_entry
For rename, we need to ensure that an upper alias exists for hard links
before attempting the operation. Introduce a flag in ovl_entry to track
the state of the upper alias.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/copy_up.c')
-rw-r--r-- | fs/overlayfs/copy_up.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c index 8f9e26e91386..58c06bd58a96 100644 --- a/fs/overlayfs/copy_up.c +++ b/fs/overlayfs/copy_up.c @@ -472,6 +472,7 @@ static int ovl_copy_up_locked(struct ovl_copy_up_ctx *c) if (err) goto out_cleanup; + ovl_dentry_set_upper_alias(c->dentry); ovl_inode_update(d_inode(c->dentry), newdentry); out: dput(temp); |