Home
last modified time | relevance | path

Searched refs:written (Results 1 – 25 of 48) sorted by relevance

12

/fs/iomap/
Dapply.c29 loff_t written = 0, ret; in iomap_apply() local
50 written = -EIO; in iomap_apply()
54 written = -EIO; in iomap_apply()
84 written = actor(inode, pos, length, data, &iomap, in iomap_apply()
94 written > 0 ? written : 0, in iomap_apply()
98 return written ? written : ret; in iomap_apply()
Dbuffered-io.c755 ssize_t written = 0; in iomap_write_actor() local
815 written += copied; in iomap_write_actor()
821 return written ? written : status; in iomap_write_actor()
829 loff_t pos = iocb->ki_pos, ret = 0, written = 0; in iomap_file_buffered_write() local
837 written += ret; in iomap_file_buffered_write()
840 return written ? written : ret; in iomap_file_buffered_write()
849 loff_t written = 0; in iomap_unshare_actor() local
876 written += status; in iomap_unshare_actor()
882 return written; in iomap_unshare_actor()
927 loff_t written = 0; in iomap_zero_range_actor() local
[all …]
/fs/ubifs/
Dtnc_commit.c109 int len, gap_remains, gap_pos, written, pad_len; in fill_gap() local
119 written = 0; in fill_gap()
137 written += 1; in fill_gap()
149 lnum, gap_start, gap_end, gap_end - gap_start, written, pad_len); in fill_gap()
152 return written; in fill_gap()
228 int lnum, dirt = 0, gap_start, gap_end, err, written, tot_written; in layout_leb_in_gaps() local
277 written = fill_gap(c, lnum, gap_start, gap_end, &dirt); in layout_leb_in_gaps()
278 if (written < 0) { in layout_leb_in_gaps()
280 return written; /* Error code */ in layout_leb_in_gaps()
282 tot_written += written; in layout_leb_in_gaps()
[all …]
Dio.c733 int err, written, n, aligned_len = ALIGN(len, 8); in ubifs_wbuf_write_nolock() local
800 written = 0; in ubifs_wbuf_write_nolock()
819 written += wbuf->avail; in ubifs_wbuf_write_nolock()
838 written += wbuf->size; in ubifs_wbuf_write_nolock()
857 err = ubifs_leb_write(c, wbuf->lnum, buf + written, in ubifs_wbuf_write_nolock()
864 written += m; in ubifs_wbuf_write_nolock()
873 memcpy(wbuf->buf, buf + written, min(len, n)); in ubifs_wbuf_write_nolock()
885 written += n; in ubifs_wbuf_write_nolock()
895 memcpy(wbuf->buf, buf + written, len); in ubifs_wbuf_write_nolock()
Dxattr.c407 int err, len, written = 0; in ubifs_listxattr() local
441 memcpy(buffer + written, fname_name(&nm), fname_len(&nm) + 1); in ubifs_listxattr()
442 written += fname_len(&nm) + 1; in ubifs_listxattr()
457 ubifs_assert(c, written <= size); in ubifs_listxattr()
458 return written; in ubifs_listxattr()
/fs/ecryptfs/
Dcrypto.c874 static void write_ecryptfs_marker(char *page_virt, size_t *written) in write_ecryptfs_marker() argument
883 (*written) = MAGIC_ECRYPTFS_MARKER_SIZE_BYTES; in write_ecryptfs_marker()
888 size_t *written) in ecryptfs_write_crypt_stat_flags() argument
899 (*written) = 4; in ecryptfs_write_crypt_stat_flags()
1002 size_t *written) in ecryptfs_write_header_metadata() argument
1013 (*written) = 6; in ecryptfs_write_header_metadata()
1055 size_t written; in ecryptfs_write_headers_virt() local
1059 write_ecryptfs_marker((page_virt + offset), &written); in ecryptfs_write_headers_virt()
1060 offset += written; in ecryptfs_write_headers_virt()
1062 &written); in ecryptfs_write_headers_virt()
[all …]
Dmmap.c72 size_t written; in strip_xattr_flag() local
76 &written); in strip_xattr_flag()
131 size_t written; in ecryptfs_copy_up_encrypted_with_header() local
138 &written); in ecryptfs_copy_up_encrypted_with_header()
Dkeystore.c2408 size_t written; in ecryptfs_generate_key_packet_set() local
2437 &written); in ecryptfs_generate_key_packet_set()
2445 (*len) += written; in ecryptfs_generate_key_packet_set()
2449 ECRYPTFS_SIG_SIZE, &written); in ecryptfs_generate_key_packet_set()
2455 (*len) += written; in ecryptfs_generate_key_packet_set()
2459 crypt_stat, key_rec, &written); in ecryptfs_generate_key_packet_set()
2465 (*len) += written; in ecryptfs_generate_key_packet_set()
/fs/ext4/
Dfile.c285 ssize_t written, size_t count) in ext4_handle_inode_extension() argument
320 return written; in ext4_handle_inode_extension()
323 if (written < 0) in ext4_handle_inode_extension()
328 written = PTR_ERR(handle); in ext4_handle_inode_extension()
332 if (ext4_update_inode_size(inode, offset + written)) { in ext4_handle_inode_extension()
335 written = ret; in ext4_handle_inode_extension()
344 written_blk = ALIGN(offset + written, 1 << blkbits); in ext4_handle_inode_extension()
369 return written; in ext4_handle_inode_extension()
/fs/ntfs/
Dfile.c1742 ssize_t status, written = 0; in ntfs_perform_write() local
1901 written += copied; in ntfs_perform_write()
1911 written ? "written" : "status", (unsigned long)written, in ntfs_perform_write()
1913 return written ? written : status; in ntfs_perform_write()
1929 ssize_t written = 0; in ntfs_file_write_iter() local
1937 written = ntfs_perform_write(file, from, iocb->ki_pos); in ntfs_file_write_iter()
1940 iocb->ki_pos += written; in ntfs_file_write_iter()
1941 if (likely(written > 0)) in ntfs_file_write_iter()
1942 written = generic_write_sync(iocb, written); in ntfs_file_write_iter()
1943 return written ? written : err; in ntfs_file_write_iter()
DKconfig37 be written to the system log. Note that debugging messages are
60 renaming is possible. Note only non-resident files can be written to
62 be written to.
/fs/ceph/
Dfile.c1427 int written = 0; in ceph_sync_write() local
1518 written += len; in ceph_sync_write()
1529 if (ret != -EOLDSNAPC && written > 0) { in ceph_sync_write()
1530 ret = written; in ceph_sync_write()
1709 ssize_t count, written = 0; in ceph_write_iter() local
1823 written = ceph_direct_read_write(iocb, &data, snapc, in ceph_write_iter()
1826 written = ceph_sync_write(iocb, &data, pos, snapc); in ceph_write_iter()
1831 if (written > 0) in ceph_write_iter()
1832 iov_iter_advance(from, written); in ceph_write_iter()
1842 written = generic_perform_write(file, from, pos); in ceph_write_iter()
[all …]
/fs/affs/
Dfile.c699 int written; in affs_write_end_ofs() local
715 written = 0; in affs_write_end_ofs()
722 written = PTR_ERR(bh); in affs_write_end_ofs()
731 written += tmp; in affs_write_end_ofs()
737 written = PTR_ERR(bh); in affs_write_end_ofs()
769 written += bsize; in affs_write_end_ofs()
804 written += tmp; in affs_write_end_ofs()
826 return written; in affs_write_end_ofs()
830 if (!written) in affs_write_end_ofs()
831 written = PTR_ERR(bh); in affs_write_end_ofs()
/fs/hfsplus/
Dxattr.c130 int index, written; in hfsplus_create_attributes_file() local
217 written = 0; in hfsplus_create_attributes_file()
218 for (; written < node_size; index++, written += PAGE_SIZE) { in hfsplus_create_attributes_file()
228 memcpy(kaddr, buf + written, in hfsplus_create_attributes_file()
229 min_t(size_t, PAGE_SIZE, node_size - written)); in hfsplus_create_attributes_file()
/fs/cifs/
Dcifsfs.c921 ssize_t written; in cifs_file_write_iter() local
925 written = cifs_user_writev(iocb, from); in cifs_file_write_iter()
926 if (written > 0 && CIFS_CACHE_READ(cinode)) { in cifs_file_write_iter()
933 return written; in cifs_file_write_iter()
936 written = cifs_get_writer(cinode); in cifs_file_write_iter()
937 if (written) in cifs_file_write_iter()
938 return written; in cifs_file_write_iter()
940 written = generic_file_write_iter(iocb, from); in cifs_file_write_iter()
952 return written; in cifs_file_write_iter()
Dfile.c3306 ssize_t written; in cifs_strict_writev() local
3308 written = cifs_get_writer(cinode); in cifs_strict_writev()
3309 if (written) in cifs_strict_writev()
3310 return written; in cifs_strict_writev()
3316 written = generic_file_write_iter(iocb, from); in cifs_strict_writev()
3319 written = cifs_writev(iocb, from); in cifs_strict_writev()
3328 written = cifs_user_writev(iocb, from); in cifs_strict_writev()
3344 return written; in cifs_strict_writev()
3457 size_t written; in cifs_readdata_to_iov() local
3462 written = copy_to_iter(addr, copy, iter); in cifs_readdata_to_iov()
[all …]
/fs/nfs/
Dfile.c616 unsigned long written = 0; in nfs_file_write() local
656 written = result; in nfs_file_write()
657 iocb->ki_pos += written; in nfs_file_write()
658 result = generic_write_sync(iocb, written); in nfs_file_write()
669 nfs_add_stats(inode, NFSIOS_NORMALWRITTENBYTES, written); in nfs_file_write()
Dpnfs_nfs.c65 if (list_empty(&bucket->committing) && list_empty(&bucket->written)) { in pnfs_free_bucket_lseg()
88 struct pnfs_commit_bucket, written); in pnfs_generic_clear_request_commit()
110 INIT_LIST_HEAD(&b->written); in pnfs_alloc_commit_array()
245 struct list_head *src = &bucket->written; in pnfs_bucket_scan_ds_commit_list()
315 nwritten = nfs_scan_commit_list(&b->written, dst, cinfo, 0); in pnfs_bucket_recover_commit_reqs()
365 list_for_each_entry(req, &b->written, wb_list) { in pnfs_bucket_search_commit_reqs()
1178 list = &bucket->written; in pnfs_layout_mark_request_commit()
/fs/ocfs2/
Dfile.c2359 ssize_t written = 0; in ocfs2_file_write_iter() local
2457 written = __generic_file_write_iter(iocb, from); in ocfs2_file_write_iter()
2459 BUG_ON(written == -EIOCBQUEUED && !direct_io); in ocfs2_file_write_iter()
2470 if ((written == -EIOCBQUEUED) || (!ocfs2_iocb_is_rw_locked(iocb))) { in ocfs2_file_write_iter()
2474 if (unlikely(written <= 0)) in ocfs2_file_write_iter()
2480 iocb->ki_pos - written, in ocfs2_file_write_iter()
2483 written = ret; in ocfs2_file_write_iter()
2488 written = ret; in ocfs2_file_write_iter()
2493 iocb->ki_pos - written, in ocfs2_file_write_iter()
2507 if (written) in ocfs2_file_write_iter()
[all …]
/fs/udf/
DKconfig11 written in packet mode, or if you want to use UDF for removable USB
/fs/gfs2/
Dfile.c852 size_t written = 0; in gfs2_file_read_iter() local
869 written = ret; in gfs2_file_read_iter()
883 written += ret; in gfs2_file_read_iter()
887 return written ? written : ret; in gfs2_file_read_iter()
/fs/fuse/
Dfile.c1289 ssize_t written = 0; in fuse_cache_write_iter() local
1323 written = generic_file_direct_write(iocb, from); in fuse_cache_write_iter()
1324 if (written < 0 || !iov_iter_count(from)) in fuse_cache_write_iter()
1327 pos += written; in fuse_cache_write_iter()
1345 written += written_buffered; in fuse_cache_write_iter()
1348 written = fuse_perform_write(iocb, mapping, from, iocb->ki_pos); in fuse_cache_write_iter()
1349 if (written >= 0) in fuse_cache_write_iter()
1350 iocb->ki_pos += written; in fuse_cache_write_iter()
1355 if (written > 0) in fuse_cache_write_iter()
1356 written = generic_write_sync(iocb, written); in fuse_cache_write_iter()
[all …]
/fs/jfs/
DKconfig40 written to the system log. Under normal circumstances, this
/fs/xfs/
Dxfs_iomap.c1081 ssize_t written, in xfs_buffered_write_iomap_end() argument
1100 written = 0; in xfs_buffered_write_iomap_end()
1108 if (unlikely(!written)) in xfs_buffered_write_iomap_end()
1111 start_fsb = XFS_B_TO_FSB(mp, offset + written); in xfs_buffered_write_iomap_end()
/fs/ufs/
DKconfig44 written to the system log.

12