The return value of file_write_func() is being treated as bytes in every place of core_write.c. Therefore every implementation of this interface should return bytes, not block count.
It can be achieved in other way: by multiplying count of blocks which is 'retval' with their size which is 'len'.
The return value of file_write_func() is being treated as bytes in every place of core_write.c. Therefore every implementation of this interface should return bytes, not block count. It can be achieved in other way: by multiplying count of blocks which is 'retval' with their size which is 'len'.