Skip to content

Commit 8925147

Browse files
drosen-googlealainv
authored andcommitted
ANDROID: sdcardfs: Remove redundant operation
We call get_derived_permission_new unconditionally, so we don't need to call update_derived_permission_lock, which does the same thing. Change-Id: I0748100828c6af806da807241a33bf42be614935 Signed-off-by: Daniel Rosenberg <drosen@google.com>
1 parent 8d82c0f commit 8925147

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

fs/sdcardfs/inode.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -516,17 +516,6 @@ static int sdcardfs_rename(struct inode *old_dir, struct dentry *old_dentry,
516516
if (new_dir != old_dir) {
517517
sdcardfs_copy_and_fix_attrs(old_dir, lower_old_dir_dentry->d_inode);
518518
fsstack_copy_inode_size(old_dir, lower_old_dir_dentry->d_inode);
519-
520-
/* update the derived permission of the old_dentry
521-
* with its new parent
522-
*/
523-
new_parent = dget_parent(new_dentry);
524-
if(new_parent) {
525-
if(old_dentry->d_inode) {
526-
update_derived_permission_lock(old_dentry);
527-
}
528-
dput(new_parent);
529-
}
530519
}
531520
/* At this point, not all dentry information has been moved, so
532521
* we pass along new_dentry for the name.*/

0 commit comments

Comments
 (0)