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>
This commit is contained in:
Amir Goldstein
2018-05-16 17:35:02 +03:00
committed by Miklos Szeredi
parent 6cf00764b0
commit 471ec5dcf4
4 changed files with 30 additions and 33 deletions

View File

@@ -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;