summaryrefslogtreecommitdiff
path: root/fs/overlayfs/super.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2018-05-16 17:35:02 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2018-05-31 12:06:10 +0300
commit471ec5dcf4e712ea81bf431a57c98d4b67416d30 (patch)
treed6e76dcc4899cded83e2bfce352d197fe5cfe1c0 /fs/overlayfs/super.c
parent6cf00764b0082cefdaf5a36202aceb1ab2470051 (diff)
downloadlinux-471ec5dcf4e712ea81bf431a57c98d4b67416d30.tar.xz
ovl: struct cattr cleanups
* Rename to ovl_cattr * Fold ovl_create_real() hardlink argument into struct ovl_cattr * Create macro OVL_CATTR() to initialize struct ovl_cattr from mode Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/super.c')
-rw-r--r--fs/overlayfs/super.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 94a7a654b0b8..286d36772e9c 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -611,9 +611,7 @@ retry:
goto retry;
}
- err = ovl_create_real(dir, work,
- &(struct cattr){.mode = S_IFDIR | 0},
- NULL);
+ err = ovl_create_real(dir, work, OVL_CATTR(attr.ia_mode));
if (err)
goto out_dput;