Skip to content

Commit

Permalink
ocfs2-devel: remove redundant OCFS2_MOUNT_POSIX_ACL check in ocfs2_ge…
Browse files Browse the repository at this point in the history
…t_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]>
Signed-off-by: Joel Becker <[email protected]>
  • Loading branch information
pibroch authored and Joel Becker committed Dec 17, 2009
1 parent aad1b15 commit f5befbb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/ocfs2/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,11 @@ static struct posix_acl *ocfs2_get_acl_nolock(struct inode *inode,
int type,
struct buffer_head *di_bh)
{
struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
int name_index;
char *value = NULL;
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;
Expand Down

0 comments on commit f5befbb

Please sign in to comment.