From 7da8ceb1f3fbee8e83462a0deb98569ce447210a Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Thu, 14 Jul 2011 20:50:36 +0000 Subject: [PATCH] --- yaml --- r: 255163 b: refs/heads/master c: ad1a2c878ca70829874b4fcc83223cccb4e26dab h: refs/heads/master i: 255161: 48c9abb32d630b766a4d1f62ffe87fc4baf0179d 255159: dd1171ff61de88145b3f52d5116f394c00b739ae v: v3 --- [refs] | 2 +- trunk/fs/xfs/linux-2.6/xfs_export.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 5d07514da5b6..a3fbc3c2dd0a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: adab0f67d1cdaf468bbc311bce4d61f17626a536 +refs/heads/master: ad1a2c878ca70829874b4fcc83223cccb4e26dab diff --git a/trunk/fs/xfs/linux-2.6/xfs_export.c b/trunk/fs/xfs/linux-2.6/xfs_export.c index f4f878fc0083..75e5d322e48f 100644 --- a/trunk/fs/xfs/linux-2.6/xfs_export.c +++ b/trunk/fs/xfs/linux-2.6/xfs_export.c @@ -151,14 +151,14 @@ xfs_nfs_get_inode( * We don't use ESTALE directly down the chain to not * confuse applications using bulkstat that expect EINVAL. */ - if (error == EINVAL) + if (error == EINVAL || error == ENOENT) error = ESTALE; return ERR_PTR(-error); } if (ip->i_d.di_gen != generation) { IRELE(ip); - return ERR_PTR(-ENOENT); + return ERR_PTR(-ESTALE); } return VFS_I(ip);