From: Li Zefan Date: Wed, 28 May 2008 13:58:56 +0000 (-0500) Subject: JFS: diAlloc() should return -EIO rather than EIO X-Git-Tag: v2.6.27-rc1~1079^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c65e8743bf8b5cf0f90e8d767bf1d8b50c14c76;p=linux-2.6 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) make_bad_inode(inode); ... Signed-off-by: Li Zefan Signed-off-by: Dave Kleikamp --- diff --git a/fs/jfs/jfs_imap.c b/fs/jfs/jfs_imap.c index 734ec916be..d6363d8309 100644 --- a/fs/jfs/jfs_imap.c +++ b/fs/jfs/jfs_imap.c @@ -1520,7 +1520,7 @@ int diAlloc(struct inode *pip, bool dir, struct inode *ip) jfs_error(ip->i_sb, "diAlloc: can't find free bit " "in wmap"); - return EIO; + return -EIO; } /* determine the inode number within the