From: Przemyslaw Marczak Date: Tue, 17 Feb 2015 14:31:52 +0000 (+0100) Subject: fs: ext4 write: return file len on success X-Git-Tag: v2015.04-rc4~74 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22b7509efb35d7bda05260d5730124dbdc3ea9dc;p=u-boot 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 Cc: Sjoerd Simons Cc: Lukasz Majewski Cc: Simon Glass Tested-by: Stephen Warren --- diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c index f7c52cc4cc..fbc4c4b1cc 100644 --- a/fs/ext4/ext4_write.c +++ b/fs/ext4/ext4_write.c @@ -1000,10 +1000,13 @@ int ext4_write_file(const char *filename, void *buf, loff_t offset, } ext4fs_close(); + *actwrite = len; + return 0; fail: ext4fs_close(); + *actwrite = 0; return -1; }