Lines Matching defs:written
217 * On success, return the number of successfully written bytes. If this number
220 * is partial. 0 means nothing was written (also return 0 when @count is 0).
222 * On error and nothing has been written, return -1 with errno set
229 s64 written, total, ret = -1;
248 for (total = 0; count; count -= written, total += written) {
249 written = dops->pwrite(dev, (const char*)b + total, count,
252 if (written > 0)
255 * If nothing written or error return number of bytes written.
257 if (!written || total)
259 /* Nothing written and error, return error status. */
260 total = written;
336 * On success, return the number of successfully written blocks. If this number
339 * means nothing was written (also return 0 when @count or @bksize are 0).
341 * On error and nothing has been written, return -1 with errno set
351 * simulating an mst read on the written data. This way cache coherency is
357 s64 written, i;
380 written = ntfs_pwrite(dev, pos, count * bksize, b);
384 if (written <= 0)
385 return written;
386 /* Finally, return the number of complete blocks written. */
387 return written / bksize;
434 * buffer @b to volume @vol. Return the number of clusters written or -1 on