projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b7d76e
)
Ext2: return ENOMEM rather than EIO if sb_getblk fails
author
Wang Shilong
<wangsl-fnst@cn.fujitsu.com>
Wed, 16 Jan 2013 05:19:06 +0000
(21:19 -0800)
committer
Jan Kara
<jack@suse.cz>
Mon, 21 Jan 2013 10:19:57 +0000
(11:19 +0100)
As the only reason that sb_getblks fails is that allocation fails.
It will be better to use ENOMEM rather than EIO.
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/xattr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext2/xattr.c
b/fs/ext2/xattr.c
index 06209ec46152715628766b471e1dd1d4997218d0..2d7557db3ae855b614b0c70d2803adafb0f64181 100644
(file)
--- 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 = -E
IO
;
+ error = -E
NOMEM
;
goto cleanup;
}
lock_buffer(new_bh);