Skip to content

Commit

Permalink
udf: return correct errno for udf_update_inode()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Changwoo Min authored and Jan Kara committed Apr 1, 2015
1 parent 78c3eb3 commit 0fd2ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/udf/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0fd2ba3

Please sign in to comment.