diff options
| author | Daniel Rosenberg <drosen@google.com> | 2017-01-26 20:10:34 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:32:20 +0200 |
| commit | 033b9530c4ac015e7a4ca23527410d2c00c6bd94 (patch) | |
| tree | bf63fb9783e204ab14de2b71f6980537b583f3e4 /fs | |
| parent | 9e1458354e14c8b719376a557c993fc700b01311 (diff) | |
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>
Diffstat (limited to 'fs')
| -rwxr-xr-x | fs/sdcardfs/inode.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/sdcardfs/inode.c b/fs/sdcardfs/inode.c index 53b2a7024..e1a680a45 100755 --- a/fs/sdcardfs/inode.c +++ b/fs/sdcardfs/inode.c @@ -515,17 +515,6 @@ static int sdcardfs_rename(struct inode *old_dir, struct dentry *old_dentry, if (new_dir != old_dir) { sdcardfs_copy_and_fix_attrs(old_dir, lower_old_dir_dentry->d_inode); fsstack_copy_inode_size(old_dir, lower_old_dir_dentry->d_inode); - - /* update the derived permission of the old_dentry - * with its new parent - */ - new_parent = dget_parent(new_dentry); - if(new_parent) { - if(old_dentry->d_inode) { - update_derived_permission_lock(old_dentry); - } - dput(new_parent); - } } /* At this point, not all dentry information has been moved, so * we pass along new_dentry for the name.*/ |
