Lines Matching refs:bytes_written
510 long long bytes_written, total; in mkntfs_write() local
518 bytes_written = dev->d_ops->write(dev, b, count); in mkntfs_write()
519 if (bytes_written == -1LL) { in mkntfs_write()
523 return bytes_written; in mkntfs_write()
524 } else if (!bytes_written) { in mkntfs_write()
527 count -= bytes_written; in mkntfs_write()
528 total += bytes_written; in mkntfs_write()
597 s64 bytes_written, total, length, delta; in ntfs_rlwrite() local
634 bytes_written = mkntfs_bitmap_write(dev, in ntfs_rlwrite()
638 bytes_written = mkntfs_logfile_write(dev, in ntfs_rlwrite()
642 bytes_written = dev->d_ops->write(dev, in ntfs_rlwrite()
646 if (bytes_written == -1LL) { in ntfs_rlwrite()
651 return bytes_written; in ntfs_rlwrite()
653 if (bytes_written) { in ntfs_rlwrite()
654 length -= bytes_written; in ntfs_rlwrite()
655 total += bytes_written; in ntfs_rlwrite()
657 *inited_size += bytes_written; in ntfs_rlwrite()
673 bytes_written = mkntfs_write(dev, b, delta); in ntfs_rlwrite()
677 if (bytes_written == -1LL) in ntfs_rlwrite()
678 return bytes_written; in ntfs_rlwrite()