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: Changwoo Min <changwoo.m@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
Changwoo Min 2015-03-22 19:17:49 -04:00 committed by Jan Kara
parent 78c3eb3c84
commit 0fd2ba36b8

View File

@ -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));
if (!bh) {
udf_debug("getblk failure\n");
return -ENOMEM;
return -EIO;
}
lock_buffer(bh);