ocfs2-devel: remove redundant OCFS2_MOUNT_POSIX_ACL check in ocfs2_get_acl_nolock()
PATCH 1/1 ocfs2-devel: remove redundant OCFS2_MOUNT_POSIX_ACL check in ocfs2_get_acl_nolock()
osb->s_mount_opt has already been checked against OCFS2_MOUNT_POSIX_ACL_CHECK before calling ocfs2_get_acl_nolock() in ocfs2_init_acl() && ocfs2_get_acl(), so remove it.
Signed-off-by Jeff Liu <[email protected]>
--- fs/ocfs2/acl.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
fs/ocfs2/acl.c +0 -3
@@ -104,9 +104,6 @@ static struct posix_acl *ocfs2_get_acl_nolock(struct inode *inode,struct posix_acl *acl;int retval; -if (!(osb->s_mount_opt &OCFS2_MOUNT_POSIX_ACL )) -return NULL ; -switch (type) {case ACL_TYPE_ACCESS : name_index =OCFS2_XATTR_INDEX_POSIX_ACL_ACCESS ;
Signature · 1 line
1.5.4.3
PATCH 1/1 ocfs2-devel: remove redundant OCFS2_MOUNT_POSIX_ACL check in ocfs2_get_acl_nolock()
Acked-by Tiger Yang <[email protected]>
Quoted 22 lines · Jeff Liu
osb->s_mount_opthas already been checked againstOCFS2_MOUNT_POSIX_ACL_CHECKbefore callingocfs2_get_acl_nolock()in ocfs2_init_acl()&&ocfs2_get_acl(), so remove it.Signed-off-by Jeff Liu<[email protected]>--- fs/ocfs2/acl.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)fs/ocfs2/acl.c +0
-3@@ -104,9 +104,6 @@ static struct posix_acl *ocfs2_get_acl_nolock(struct inode *inode,struct posix_acl *acl;int retval; -if (!(osb->s_mount_opt&OCFS2_MOUNT_POSIX_ACL )) -return NULL ; -switch (type) {case ACL_TYPE_ACCESS : name_index =OCFS2_XATTR_INDEX_POSIX_ACL_ACCESS ;