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:

committed by
Miklos Szeredi

parent
6cf00764b0
commit
471ec5dcf4
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user