]> err.no Git - linux-2.6/commitdiff
ocfs2: filter more error prints
authorMark Fasheh <mark.fasheh@oracle.com>
Thu, 26 Apr 2007 18:43:43 +0000 (11:43 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Thu, 26 Apr 2007 20:39:08 +0000 (13:39 -0700)
We don't want to print anything at all in ocfs2_lookup() when getting an
error from ocfs2_iget() - it could be something as innocuous as a signal
being detected in the dlm.

ocfs2_permission() should filter on -ENOENT which ocfs2_meta_lock() can
return if the inode was deleted on another node.

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

index f2cd3bf9efb2f6b2dff8b44c44592355e2b44a6e..25e36fbd7bc37afd6020a091bbda6cd23d112e96 100644 (file)
@@ -972,7 +972,8 @@ int ocfs2_permission(struct inode *inode, int mask, struct nameidata *nd)
 
        ret = ocfs2_meta_lock(inode, NULL, 0);
        if (ret) {
-               mlog_errno(ret);
+               if (ret != -ENOENT)
+                       mlog_errno(ret);
                goto out;
        }
 
index 28dd757ff67dfee2c480aa334f643f508318705f..1fff0c02d98b09f17d03c56c9d940c08937f5b99 100644 (file)
@@ -175,8 +175,6 @@ static struct dentry *ocfs2_lookup(struct inode *dir, struct dentry *dentry,
 
        inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0);
        if (IS_ERR(inode)) {
-               mlog(ML_ERROR, "Unable to create inode %llu\n",
-                    (unsigned long long)blkno);
                ret = ERR_PTR(-EACCES);
                goto bail_unlock;
        }