aboutsummaryrefslogtreecommitdiff
path: root/fs/sdcardfs/derived_perm.c
diff options
context:
space:
mode:
authorHarshit Jain <harshitjain6751@gmail.com>2017-04-21 15:49:14 +0530
committerDarshan Manjrekar <darshan12051999@gmail.com>2017-05-21 09:47:05 +0200
commit56596c5b3589529d34c24ef5aa65619ebcdc5c6e (patch)
treefc8750f9065ad639d512f730efeed0005a1a7481 /fs/sdcardfs/derived_perm.c
parent8a8e053e33ca0fac8f924f13a0d0826ecdfd1226 (diff)
Move d_u.d_child alias to d_child to fix sdcardfs buildHEADn7.1
Change-Id: I3b82d49bf1d11cdfbed7137aad708ffc12172de7
Diffstat (limited to 'fs/sdcardfs/derived_perm.c')
-rwxr-xr-xfs/sdcardfs/derived_perm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/sdcardfs/derived_perm.c b/fs/sdcardfs/derived_perm.c
index 5ad69e6f6c3..85e60e8f21f 100755
--- a/fs/sdcardfs/derived_perm.c
+++ b/fs/sdcardfs/derived_perm.c
@@ -267,7 +267,7 @@ void fixup_perms_recursive(struct dentry *dentry, struct limit_search *limit) {
if (needs_fixup(info->perm)) {
spin_lock(&dentry->d_lock);
- list_for_each_entry(child, &dentry->d_subdirs, d_u.d_child) {
+ list_for_each_entry(child, &dentry->d_subdirs, d_child) {
dget(child);
if (!(limit->flags & BY_NAME) || !strncasecmp(child->d_name.name, limit->name, limit->length)) {
if (child->d_inode) {
@@ -282,7 +282,7 @@ void fixup_perms_recursive(struct dentry *dentry, struct limit_search *limit) {
spin_unlock(&dentry->d_lock);
} else if (descendant_may_need_fixup(info, limit)) {
spin_lock(&dentry->d_lock);
- list_for_each_entry(child, &dentry->d_subdirs, d_u.d_child) {
+ list_for_each_entry(child, &dentry->d_subdirs, d_child) {
fixup_perms_recursive(child, limit);
}
spin_unlock(&dentry->d_lock);
@@ -297,7 +297,7 @@ void drop_recursive(struct dentry *parent) {
return;
info = SDCARDFS_I(parent->d_inode);
spin_lock(&parent->d_lock);
- list_for_each_entry(dentry, &parent->d_subdirs, d_u.d_child) {
+ list_for_each_entry(dentry, &parent->d_subdirs, d_child) {
if (dentry->d_inode) {
if (SDCARDFS_I(parent->d_inode)->top != SDCARDFS_I(dentry->d_inode)->top) {
drop_recursive(dentry);
@@ -316,7 +316,7 @@ void fixup_top_recursive(struct dentry *parent) {
return;
info = SDCARDFS_I(parent->d_inode);
spin_lock(&parent->d_lock);
- list_for_each_entry(dentry, &parent->d_subdirs, d_u.d_child) {
+ list_for_each_entry(dentry, &parent->d_subdirs, d_child) {
if (dentry->d_inode) {
if (SDCARDFS_I(parent->d_inode)->top != SDCARDFS_I(dentry->d_inode)->top) {
get_derived_permission(parent, dentry);