diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-01-03 20:06:59 -0500 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-01-21 19:19:12 -0500 |
commit | 6a1bd4a5788435b6ef1664383604b43607eb825a (patch) | |
tree | 36f7bdb8075a4193b903de8f71b17512e7b690df /fs/ocfs2/export.c | |
parent | 592282cf2eaa33409c6511ddd3f3ecaa57daeaaa (diff) |
ocfs2: cleanup ocfs2_iget() errors
Get rid of some error prints in the ocfs2_iget() path from
ocfs2_get_dentry(). NFSD can easily cause us to read stale inodes.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/export.c')
-rw-r--r-- | fs/ocfs2/export.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ocfs2/export.c b/fs/ocfs2/export.c index 06be6e774cf9..56e1fefc1205 100644 --- a/fs/ocfs2/export.c +++ b/fs/ocfs2/export.c | |||
@@ -60,14 +60,11 @@ static struct dentry *ocfs2_get_dentry(struct super_block *sb, void *vobjp) | |||
60 | 60 | ||
61 | inode = ocfs2_iget(OCFS2_SB(sb), handle->ih_blkno, 0); | 61 | inode = ocfs2_iget(OCFS2_SB(sb), handle->ih_blkno, 0); |
62 | 62 | ||
63 | if (IS_ERR(inode)) { | 63 | if (IS_ERR(inode)) |
64 | mlog_errno(PTR_ERR(inode)); | ||
65 | return (void *)inode; | 64 | return (void *)inode; |
66 | } | ||
67 | 65 | ||
68 | if (handle->ih_generation != inode->i_generation) { | 66 | if (handle->ih_generation != inode->i_generation) { |
69 | iput(inode); | 67 | iput(inode); |
70 | mlog_errno(-ESTALE); | ||
71 | return ERR_PTR(-ESTALE); | 68 | return ERR_PTR(-ESTALE); |
72 | } | 69 | } |
73 | 70 | ||