]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - fs/ext4/ext4_write.c
fs: ext4 write: return file len on success
[karo-tx-uboot.git] / fs / ext4 / ext4_write.c
index f7c52cc4cc1493c81d4a2467a67196a3df6eaf07..fbc4c4b1cc1a48e2f458a0ef30df97b451d40675 100644 (file)
@@ -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;
 }