mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
kill check_acl callback of generic_permission()
its value depends only on inode and does not change; we might as well store it in ->i_op->check_acl and be done with that. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
07b8ce1ee8
commit
178ea73521
20 changed files with 47 additions and 37 deletions
|
|
@ -398,7 +398,7 @@ again:
|
|||
hpfs_unlock(dir->i_sb);
|
||||
return -ENOSPC;
|
||||
}
|
||||
if (generic_permission(inode, MAY_WRITE, 0, NULL) ||
|
||||
if (generic_permission(inode, MAY_WRITE, 0) ||
|
||||
!S_ISREG(inode->i_mode) ||
|
||||
get_write_access(inode)) {
|
||||
d_rehash(dentry);
|
||||
|
|
|
|||
Loading…
Reference in a new issue