diff options
author | Amir Goldstein <amir73il@gmail.com> | 2018-05-16 16:35:02 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-05-31 11:06:10 +0200 |
commit | 471ec5dcf4e712ea81bf431a57c98d4b67416d30 (patch) | |
tree | d6e76dcc4899cded83e2bfce352d197fe5cfe1c0 /fs/overlayfs/super.c | |
parent | ovl: strip debug argument from ovl_do_ helpers (diff) | |
download | linux-471ec5dcf4e712ea81bf431a57c98d4b67416d30.tar.xz linux-471ec5dcf4e712ea81bf431a57c98d4b67416d30.zip |
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.c | 4 |
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; |