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:
parent
78c3eb3c84
commit
0fd2ba36b8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user