[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1427066269-16372-1-git-send-email-changwoo@gatech.edu>
Date: Sun, 22 Mar 2015 19:17:49 -0400
From: Changwoo Min <changwoo.m@...il.com>
To: jack@...e.cz, linux-kernel@...r.kernel.org
Cc: taesoo@...ech.edu, changwoo@...ech.edu, sanidhya@...ech.edu,
blee@...ech.edu, csong84@...ech.edu,
Changwoo Min <changwoo.m@...il.com>
Subject: [PATCH] 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@...il.com>
---
fs/udf/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index a445d59..c758023 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -1637,7 +1637,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);
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists