| Submitter | Wang shilong |
|---|---|
| Date | Jan. 13, 2011, 10:46 a.m. |
| Message ID | <1294915585-3377-1-git-send-email-wangshilong1991@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/211583/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 663fdcd..3308a55 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -1457,7 +1457,7 @@ static ssize_t ext2_quota_write(struct super_block *sb, int type, else bh = sb_getblk(sb, tmp_bh.b_blocknr); if (unlikely(!bh)) { - err = -EIO; + err = -ENOMEM; goto out; } lock_buffer(bh); diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index 06209ec..2d7557d 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c @@ -665,7 +665,7 @@ ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh, if (unlikely(!new_bh)) { ext2_free_blocks(inode, block, 1); mark_inode_dirty(inode); - error = -EIO; + error = -ENOMEM; goto cleanup; } lock_buffer(new_bh);