Displaying 1 result from an estimated 1 matches for "97fbe93".
2012 Feb 09
3
[PATCH] Btrfs: return EUCLEAN rather than ENXIO once internal error has occurred for SEEK_DATA/SEEK_HOLE inquiry
...cular errno is more reasonable in Btrfs to indicate this fatal error?
Thanks,
-Jeff
Cc: david@fromorbit.com
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
fs/btrfs/file.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 97fbe93..6693040 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1761,7 +1761,7 @@ static int find_desired_extent(struct inode *inode, loff_t *offset, int origin)
start - root->sectorsize,
root->sectorsize, 0);
if (IS_ERR(em)) {
- ret = -ENXIO;
+ ret = -EUCLEAN;...