diff options
author | Changwoo Min <changwoo.m@gmail.com> | 2015-03-22 19:17:49 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-04-01 12:46:46 +0200 |
commit | 0fd2ba36b8e4c720e5fb5ee40171919c8207237e (patch) | |
tree | 980244a15dd177f94ac9f36daf6fca8c2d87d9b2 /fs/udf/inode.c | |
parent | 78c3eb3c84470a654b283103deff0ba128759dcd (diff) | |
download | linux-stable-0fd2ba36b8e4c720e5fb5ee40171919c8207237e.tar.gz linux-stable-0fd2ba36b8e4c720e5fb5ee40171919c8207237e.tar.bz2 linux-stable-0fd2ba36b8e4c720e5fb5ee40171919c8207237e.zip |
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>
Diffstat (limited to 'fs/udf/inode.c')
-rw-r--r-- | fs/udf/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |