Commit 3c65e874 authored by Li Zefan's avatar Li Zefan Committed by Dave Kleikamp
Browse files

JFS: diAlloc() should return -EIO rather than EIO

The comment above the function says one of its return value is -EIO,
and also the caller of diAlloc() checks for -EIO:

struct inode *ialloc(struct inode *parent, umode_t mode)
	rc = diAlloc(parent, S_ISDIR(mode), inode);
	if (rc) {
		jfs_warn("ialloc: diAlloc returned %d!", rc);
		if (rc == -EIO)
Signed-off-by: default avatarLi Zefan <>
Signed-off-by: default avatarDave Kleikamp <>
parent 6536d289
......@@ -1520,7 +1520,7 @@ int diAlloc(struct inode *pip, bool dir, struct inode *ip)
"diAlloc: can't find free bit "
"in wmap");
return EIO;
return -EIO;
/* determine the inode number within the
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment