ocfs2: don't print error in ocfs2_permission()
authorMark Fasheh <mark.fasheh@oracle.com>
Thu, 14 Dec 2006 23:29:25 +0000 (15:29 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 29 Dec 2006 00:37:20 +0000 (16:37 -0800)
Errors from generic_permission() can happen in valid cases and shouldn't be
reported.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/file.c

index 9fd590b9bde3d69a403902cd60f228e92eea87f6..a50447d461e5deebcb0b36959ed50d5398422be1 100644 (file)
@@ -966,8 +966,6 @@ int ocfs2_permission(struct inode *inode, int mask, struct nameidata *nd)
        }
 
        ret = generic_permission(inode, mask, NULL);
-       if (ret)
-               mlog_errno(ret);
 
        ocfs2_meta_unlock(inode, 0);
 out: