Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 20 of 20) sorted by relevance

/fs/pstore/
Dram_core.c42 static inline size_t buffer_size(struct persistent_ram_zone *prz) in buffer_size() function
64 while (unlikely(new >= prz->buffer_size)) in buffer_start_add()
65 new -= prz->buffer_size; in buffer_start_add()
85 if (old == prz->buffer_size) in buffer_size_add()
89 if (new > prz->buffer_size) in buffer_size_add()
90 new = prz->buffer_size; in buffer_size_add()
126 uint8_t *buffer_end = buffer->data + prz->buffer_size; in persistent_ram_update_ecc()
170 while (block < buffer->data + buffer_size(prz)) { in persistent_ram_ecc_old()
173 if (block + size > buffer->data + prz->buffer_size) in persistent_ram_ecc_old()
174 size = buffer->data + prz->buffer_size - block; in persistent_ram_ecc_old()
[all …]
Dzone.c84 size_t buffer_size; member
180 if (off > zone->buffer_size) in psz_zone_read_buffer()
182 len = min_t(size_t, len, zone->buffer_size - off); in psz_zone_read_buffer()
192 if (off > zone->buffer_size) in psz_zone_read_oldbuf()
194 len = min_t(size_t, len, zone->buffer_size - off); in psz_zone_read_oldbuf()
208 if (off > zone->buffer_size) in psz_zone_write()
211 wlen = min_t(size_t, len, zone->buffer_size - off); in psz_zone_write()
243 wlen = zone->buffer_size + sizeof(*zone->buffer); in psz_zone_write()
363 rcnt = info->read((char *)buf, zone->buffer_size + sizeof(*buf), in psz_kmsg_recover_data()
365 if (rcnt != zone->buffer_size + sizeof(*buf)) in psz_kmsg_recover_data()
[all …]
Dram.c384 if (size + hlen > prz->buffer_size) in ramoops_pstore_write()
385 size = prz->buffer_size - hlen; in ramoops_pstore_write()
835 cxt->pstore.bufsize = cxt->dprzs[0]->buffer_size; in ramoops_probe()
/fs/9p/
Dxattr.c18 void *buffer, size_t buffer_size) in v9fs_fid_xattr_get() argument
23 struct kvec kvec = {.iov_base = buffer, .iov_len = buffer_size}; in v9fs_fid_xattr_get()
27 iov_iter_kvec(&to, ITER_DEST, &kvec, 1, buffer_size); in v9fs_fid_xattr_get()
36 if (attr_size > buffer_size) { in v9fs_fid_xattr_get()
37 if (!buffer_size) /* request to get the attr_size */ in v9fs_fid_xattr_get()
63 void *buffer, size_t buffer_size) in v9fs_xattr_get() argument
69 name, buffer_size); in v9fs_xattr_get()
73 ret = v9fs_fid_xattr_get(fid, name, buffer, buffer_size); in v9fs_xattr_get()
137 ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in v9fs_listxattr() argument
140 return v9fs_xattr_get(dentry, "", buffer, buffer_size); in v9fs_listxattr()
Dxattr.h18 void *buffer, size_t buffer_size);
20 void *buffer, size_t buffer_size);
26 size_t buffer_size);
/fs/erofs/
Dxattr.c286 int buffer_size, index; member
311 int err = it->buffer_size < value_sz ? -ERANGE : 0; in xattr_checkbuffer()
313 it->buffer_size = value_sz; in xattr_checkbuffer()
348 return ret ? ret : it->buffer_size; in inline_getxattr()
373 return ret ? ret : it->buffer_size; in shared_getxattr()
388 void *buffer, size_t buffer_size) in erofs_getxattr() argument
409 it.buffer_size = buffer_size; in erofs_getxattr()
481 int buffer_size, buffer_ofs; member
507 + entry->e_name_len + 1 > it->buffer_size) in xattr_entrylist()
588 char *buffer, size_t buffer_size) in erofs_listxattr() argument
[all …]
Dxattr.h71 size_t buffer_size) in erofs_getxattr() argument
/fs/reiserfs/
Dxattr.c514 const void *buffer, size_t buffer_size, int flags) in reiserfs_xattr_set_handle() argument
539 xahash = xattr_hash(buffer, buffer_size); in reiserfs_xattr_set_handle()
540 while (buffer_pos < buffer_size || buffer_pos == 0) { in reiserfs_xattr_set_handle()
545 if (buffer_size - buffer_pos > PAGE_SIZE) in reiserfs_xattr_set_handle()
548 chunk = buffer_size - buffer_pos; in reiserfs_xattr_set_handle()
585 if (err || buffer_size == 0 || !buffer) in reiserfs_xattr_set_handle()
589 new_size = buffer_size + sizeof(struct reiserfs_xattr_header); in reiserfs_xattr_set_handle()
612 const void *buffer, size_t buffer_size, int flags) in reiserfs_xattr_set() argument
617 size_t jbegin_count = reiserfs_xattr_nblocks(inode, buffer_size); in reiserfs_xattr_set()
634 buffer, buffer_size, flags); in reiserfs_xattr_set()
[all …]
/fs/squashfs/
Dxattr.c27 size_t buffer_size) in squashfs_listxattr() argument
36 size_t rest = buffer_size; in squashfs_listxattr()
98 err = buffer_size - rest; in squashfs_listxattr()
106 const char *name, void *buffer, size_t buffer_size) in squashfs_xattr_get() argument
173 if (vsize > buffer_size) { in squashfs_xattr_get()
/fs/nfs/blocklayout/
Dextent_tree.c492 size_t buffer_size) in ext_tree_free_commitdata() argument
495 int nr_pages = DIV_ROUND_UP(buffer_size, PAGE_SIZE), i; in ext_tree_free_commitdata()
524 size_t buffer_size, size_t *count, __u64 *lastbyte) in ext_tree_encode_commit() argument
536 if (ext_tree_layoutupdate_size(bl, *count) > buffer_size) { in ext_tree_encode_commit()
559 size_t count = 0, buffer_size = PAGE_SIZE; in ext_tree_prepare_commit() local
572 ret = ext_tree_encode_commit(bl, start_p + 1, buffer_size, &count, &arg->lastbytewritten); in ext_tree_prepare_commit()
574 ext_tree_free_commitdata(arg, buffer_size); in ext_tree_prepare_commit()
576 buffer_size = ext_tree_layoutupdate_size(bl, count); in ext_tree_prepare_commit()
580 kcalloc(DIV_ROUND_UP(buffer_size, PAGE_SIZE), in ext_tree_prepare_commit()
585 start_p = __vmalloc(buffer_size, GFP_NOFS); in ext_tree_prepare_commit()
/fs/ext2/
Dxattr.c197 void *buffer, size_t buffer_size) in ext2_xattr_get() argument
207 name_index, name, buffer, (long)buffer_size); in ext2_xattr_get()
262 if (size > buffer_size) in ext2_xattr_get()
288 ext2_xattr_list(struct dentry *dentry, char *buffer, size_t buffer_size) in ext2_xattr_list() argument
294 size_t rest = buffer_size; in ext2_xattr_list()
299 buffer, (long)buffer_size); in ext2_xattr_list()
358 error = buffer_size - rest; /* total size */ in ext2_xattr_list()
/fs/ext4/
Dxattr.c525 void *buffer, size_t buffer_size) in ext4_xattr_block_get() argument
535 name_index, name, buffer, (long)buffer_size); in ext4_xattr_block_get()
560 if (size > buffer_size) in ext4_xattr_block_get()
585 void *buffer, size_t buffer_size) in ext4_xattr_ibody_get() argument
615 if (size > buffer_size) in ext4_xattr_ibody_get()
650 void *buffer, size_t buffer_size) in ext4_xattr_get() argument
662 buffer_size); in ext4_xattr_get()
665 buffer_size); in ext4_xattr_get()
672 char *buffer, size_t buffer_size) in ext4_xattr_list_entries() argument
674 size_t rest = buffer_size; in ext4_xattr_list_entries()
[all …]
Dxattr.h202 void *buffer, size_t buffer_size);
/fs/afs/
Dvl_list.c152 size_t buffer_size) in afs_extract_vlserver_list() argument
159 const u8 *b = buffer, *end = buffer + buffer_size; in afs_extract_vlserver_list()
325 print_hex_dump_bytes("DNS: ", DUMP_PREFIX_NONE, buffer, buffer_size); in afs_extract_vlserver_list()
/fs/f2fs/
Dxattr.c514 void *buffer, size_t buffer_size, struct page *ipage) in f2fs_getxattr() argument
541 if (buffer && size > buffer_size) { in f2fs_getxattr()
561 ssize_t f2fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in f2fs_listxattr() argument
567 size_t rest = buffer_size; in f2fs_listxattr()
613 error = buffer_size - rest; in f2fs_listxattr()
Dxattr.h148 size_t buffer_size, struct page *dpage) in f2fs_getxattr() argument
/fs/ocfs2/
Dxattr.c260 size_t buffer_size);
930 char *buffer, size_t buffer_size) in ocfs2_xattr_list_entries() argument
943 buffer, buffer_size, in ocfs2_xattr_list_entries()
973 size_t buffer_size) in ocfs2_xattr_ibody_list() argument
986 ret = ocfs2_xattr_list_entries(inode, header, buffer, buffer_size); in ocfs2_xattr_ibody_list()
994 size_t buffer_size) in ocfs2_xattr_block_list() argument
1014 buffer, buffer_size); in ocfs2_xattr_block_list()
1017 buffer, buffer_size); in ocfs2_xattr_block_list()
1155 size_t buffer_size, in ocfs2_xattr_ibody_get() argument
1178 if (size > buffer_size) in ocfs2_xattr_ibody_get()
[all …]
/fs/
Dbad_inode.c112 size_t buffer_size) in bad_inode_listxattr() argument
Dxattr.c938 generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in generic_listxattr() argument
959 if (len + 1 > buffer_size) in generic_listxattr()
963 buffer_size -= len + 1; in generic_listxattr()
/fs/dlm/
Dconfig.c220 CLUSTER_ATTR(buffer_size, dlm_check_buffer_size);