mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] udf: return correct errno for udf_update_inode()
@ 2015-03-22 23:17 Changwoo Min
  2015-04-01 10:46 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Changwoo Min @ 2015-03-22 23:17 UTC (permalink / raw)
  To: jack, linux-kernel
  Cc: taesoo, changwoo, sanidhya, blee, csong84, Changwoo Min

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>

---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-01 10:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-22 23:17 [PATCH] udf: return correct errno for udf_update_inode() Changwoo Min
2015-04-01 10:46 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®