Jeff Liu
2009-Dec-15 06:08 UTC
[Ocfs2-devel] [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 <jeff.liu at oracle.com> --- fs/ocfs2/acl.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/ocfs2/acl.c b/fs/ocfs2/acl.c index fbeaec7..42d70b7 100644 --- a/fs/ocfs2/acl.c +++ b/fs/ocfs2/acl.c @@ -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; -- 1.5.4.3
Tiger Yang
2009-Dec-18 02:11 UTC
[Ocfs2-devel] [PATCH 1/1] ocfs2-devel: remove redundant OCFS2_MOUNT_POSIX_ACL check in ocfs2_get_acl_nolock()
Acked-by: Tiger Yang <tiger.yang at oracle.com> On 12/15/2009 02:08 PM, Jeff Liu wrote:> 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<jeff.liu at oracle.com> > --- > fs/ocfs2/acl.c | 3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > > diff --git a/fs/ocfs2/acl.c b/fs/ocfs2/acl.c > index fbeaec7..42d70b7 100644 > --- a/fs/ocfs2/acl.c > +++ b/fs/ocfs2/acl.c > @@ -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;