Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Aufs5 Standalone
Commits
7d89add9
Commit
7d89add9
authored
Oct 11, 2019
by
J. R. Okajima
Browse files
Merge branch 'aufs5.2/30stdalone' into aufs5.2/39public
parents
8822cc65
74bb79bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
fs/aufs/posix_acl.c
View file @
7d89add9
...
@@ -50,7 +50,9 @@ struct posix_acl *aufs_get_acl(struct inode *inode, int type)
...
@@ -50,7 +50,9 @@ struct posix_acl *aufs_get_acl(struct inode *inode, int type)
/* always topmost only */
/* always topmost only */
acl
=
get_acl
(
h_inode
,
type
);
acl
=
get_acl
(
h_inode
,
type
);
if
(
!
IS_ERR_OR_NULL
(
acl
))
if
(
IS_ERR
(
acl
))
forget_cached_acl
(
inode
,
type
);
else
set_cached_acl
(
inode
,
type
,
acl
);
set_cached_acl
(
inode
,
type
,
acl
);
out:
out:
...
@@ -91,12 +93,12 @@ int aufs_set_acl(struct inode *inode, struct posix_acl *acl, int type)
...
@@ -91,12 +93,12 @@ int aufs_set_acl(struct inode *inode, struct posix_acl *acl, int type)
}
}
ssz
=
au_sxattr
(
dentry
,
inode
,
&
arg
);
ssz
=
au_sxattr
(
dentry
,
inode
,
&
arg
);
/* forget even it if succeeds since the branch might set differently */
forget_cached_acl
(
inode
,
type
);
dput
(
dentry
);
dput
(
dentry
);
err
=
ssz
;
err
=
ssz
;
if
(
ssz
>=
0
)
{
if
(
ssz
>=
0
)
err
=
0
;
err
=
0
;
set_cached_acl
(
inode
,
type
,
acl
);
}
out:
out:
return
err
;
return
err
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment