提交 0fd2ba36 编写于 作者: C Changwoo Min 提交者: Jan Kara

udf: return correct errno for udf_update_inode()

Instead of -ENOMEM, properly return -EIO udf_update_inode()
error, similar/consistent to the rest of filesystems.
Signed-off-by: NChangwoo Min <changwoo.m@gmail.com>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 78c3eb3c
...@@ -1636,7 +1636,7 @@ static int udf_update_inode(struct inode *inode, int do_sync) ...@@ -1636,7 +1636,7 @@ static int udf_update_inode(struct inode *inode, int do_sync)
udf_get_lb_pblock(inode->i_sb, &iinfo->i_location, 0)); udf_get_lb_pblock(inode->i_sb, &iinfo->i_location, 0));
if (!bh) { if (!bh) {
udf_debug("getblk failure\n"); udf_debug("getblk failure\n");
return -ENOMEM; return -EIO;
} }
lock_buffer(bh); lock_buffer(bh);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册