Browse Source

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>
Changwoo Min 10 years ago
parent
commit
0fd2ba36b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/udf/inode.c

+ 1 - 1
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));
 			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);