diff options
author | Akinobu Mita <mita@miraclelinux.com> | 2006-09-14 10:22:38 -0400 |
---|---|---|
committer | Dave Kleikamp <shaggy@austin.ibm.com> | 2006-10-02 10:51:01 -0400 |
commit | 087387f90f577f5a0ab68d33ef326c9bb6d80dda (patch) | |
tree | 99f2ba6f672c9d98fbd628ee54120f63593f1bd0 /fs/jfs/super.c | |
parent | 2a6968a9784551c216f9379a728d4104dbad98a8 (diff) |
[PATCH] JFS: return correct error when i-node allocation failed
I have seen confusing behavior on JFS when I injected many intentional
slab allocation errors. The cp command failed with no disk space error
with enough disk space.
This patch makes:
- change the return value in case slab allocation failures happen
from -ENOSPC to -ENOMEM
- ialloc() return error code so that the caller can know the reason
of failures
Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
(cherry picked from 2b46f77976f798f3fe800809a1d0ed38763c71c8 commit)
Diffstat (limited to 'fs/jfs/super.c')
-rw-r--r-- | fs/jfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/super.c b/fs/jfs/super.c index 143bcd1d5eaa..fc6951587c6b 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c | |||
@@ -422,7 +422,7 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent) | |||
422 | 422 | ||
423 | sbi = kzalloc(sizeof (struct jfs_sb_info), GFP_KERNEL); | 423 | sbi = kzalloc(sizeof (struct jfs_sb_info), GFP_KERNEL); |
424 | if (!sbi) | 424 | if (!sbi) |
425 | return -ENOSPC; | 425 | return -ENOMEM; |
426 | sb->s_fs_info = sbi; | 426 | sb->s_fs_info = sbi; |
427 | sbi->sb = sb; | 427 | sbi->sb = sb; |
428 | sbi->uid = sbi->gid = sbi->umask = -1; | 428 | sbi->uid = sbi->gid = sbi->umask = -1; |