Home
last modified time | relevance | path

Searched hist:"3 c65e8743bf8b5cf0f90e8d767bf1d8b50c14c76" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/jfs/
H A Djfs_imap.cdiff 3c65e8743bf8b5cf0f90e8d767bf1d8b50c14c76 Wed May 28 08:58:56 CDT 2008 Li Zefan <lizf@cn.fujitsu.com> 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 <lizf@cn.fujitsu.com>
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>