From 0fd2ba36b8e4c720e5fb5ee40171919c8207237e Mon Sep 17 00:00:00 2001 From: Changwoo Min Date: Sun, 22 Mar 2015 19:17:49 -0400 Subject: 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 Signed-off-by: Jan Kara --- fs/udf/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs') diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 0001ece68f45..52577a8e4179 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -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); -- cgit v1.2.3