Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-6235 scrub: replace the stale OI mapping
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_compat.c
diff --git
a/lustre/osd-ldiskfs/osd_compat.c
b/lustre/osd-ldiskfs/osd_compat.c
index
ca2dc18
..
9e0c0d7
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_compat.c
+++ b/
lustre/osd-ldiskfs/osd_compat.c
@@
-905,8
+905,11
@@
int osd_obj_map_lookup(struct osd_thread_info *info, struct osd_device *dev,
brelse(bh);
inode = osd_iget(info, dev, id);
- if (IS_ERR(inode))
- RETURN(PTR_ERR(inode));
+ if (IS_ERR(inode)) {
+ int rc = PTR_ERR(inode);
+
+ RETURN(rc == -ENOENT ? -ESTALE : rc);
+ }
iput(inode);
RETURN(0);