summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-02-17 17:31:52 +0300
committerDongjin Kim <tobetter@gmail.com>2020-02-10 16:44:41 +0300
commit225088520f897ceb02ba0d4413ba3611139feff0 (patch)
treecc098e472b8d0c03119c66a778667fb23e9970f7
parentc989da31a5c1da3ab57d7c6dc5a3fdbcc1c3eed7 (diff)
downloadu-boot-225088520f897ceb02ba0d4413ba3611139feff0.tar.xz
fs: ext4 write: return file len on success
After rework of the file system API, the size of ext4 write was missed. This causes printing unreliable write size at the end of the file system write operation. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r--fs/ext4/ext4_write.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c
index 2ca0e07076..f61d59d99e 100644
--- a/fs/ext4/ext4_write.c
+++ b/fs/ext4/ext4_write.c
@@ -1024,6 +1024,8 @@ int ext4_write_file(const char *filename, void *buf, loff_t offset,
ext4fs_close();
*actwrite = len;
+ *actwrite = len;
+
return 0;
fail: