projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b31f9d7
)
fs: ext4 write: return file len on success
author
Przemyslaw Marczak
<
[email protected]
>
Tue, 17 Feb 2015 14:31:52 +0000
(15:31 +0100)
committer
Tom Rini
<
[email protected]
>
Fri, 6 Mar 2015 01:49:42 +0000
(20:49 -0500)
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 <
[email protected]
>
Cc: Sjoerd Simons <
[email protected]
>
Cc: Lukasz Majewski <
[email protected]
>
Cc: Simon Glass <
[email protected]
>
Tested-by: Stephen Warren <
[email protected]
>
fs/ext4/ext4_write.c
patch
|
blob
|
history
diff --git
a/fs/ext4/ext4_write.c
b/fs/ext4/ext4_write.c
index f7c52cc4cc1493c81d4a2467a67196a3df6eaf07..fbc4c4b1cc1a48e2f458a0ef30df97b451d40675 100644
(file)
--- 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;
}