summaryrefslogtreecommitdiff
path: root/ext2fs/getblk.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs/getblk.c')
-rw-r--r--ext2fs/getblk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext2fs/getblk.c b/ext2fs/getblk.c
index 808717e2..d3fd4df8 100644
--- a/ext2fs/getblk.c
+++ b/ext2fs/getblk.c
@@ -154,7 +154,7 @@ inode_getblk (struct node *node, int nr, int create, int zero,
create ? "" : "no", hint, goal, *result);
if (!*result)
- return EIO;
+ return ENOSPC;
node->dn->info.i_data[nr] = *result;
@@ -203,7 +203,7 @@ block_getblk (struct node *node, block_t block, int nr, int create, int zero,
*result = ext2_alloc_block (node, goal, zero);
if (!*result)
- return EIO; /* XXX? */
+ return ENOSPC;
((u32 *)bh)[nr] = *result;