Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 18 of 18) 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 …]
Dram.c427 if (size + hlen > prz->buffer_size) in ramoops_pstore_write()
428 size = prz->buffer_size - hlen; in ramoops_pstore_write()
846 cxt->pstore.bufsize = cxt->dprzs[0]->buffer_size; in ramoops_probe()
/fs/9p/
Dxattr.c26 void *buffer, size_t buffer_size) in v9fs_fid_xattr_get() argument
31 struct kvec kvec = {.iov_base = buffer, .iov_len = buffer_size}; in v9fs_fid_xattr_get()
35 iov_iter_kvec(&to, READ, &kvec, 1, buffer_size); in v9fs_fid_xattr_get()
44 if (attr_size > buffer_size) { in v9fs_fid_xattr_get()
45 if (!buffer_size) /* request to get the attr_size */ in v9fs_fid_xattr_get()
71 void *buffer, size_t buffer_size) in v9fs_xattr_get() argument
76 name, buffer_size); in v9fs_xattr_get()
81 return v9fs_fid_xattr_get(fid, name, buffer, buffer_size); in v9fs_xattr_get()
135 ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in v9fs_listxattr() argument
137 return v9fs_xattr_get(dentry, NULL, buffer, buffer_size); in v9fs_listxattr()
/fs/erofs/
Dxattr.c320 int buffer_size, index; member
345 int err = it->buffer_size < value_sz ? -ERANGE : 0; in xattr_checkbuffer()
347 it->buffer_size = value_sz; in xattr_checkbuffer()
384 return ret ? ret : it->buffer_size; in inline_getxattr()
420 return ret ? ret : it->buffer_size; in shared_getxattr()
435 void *buffer, size_t buffer_size) in erofs_getxattr() argument
455 it.buffer_size = buffer_size; in erofs_getxattr()
529 int buffer_size, buffer_ofs; member
555 + entry->e_name_len + 1 > it->buffer_size) in xattr_entrylist()
647 char *buffer, size_t buffer_size) in erofs_listxattr() argument
[all …]
Dxattr.h73 size_t buffer_size) in erofs_getxattr() argument
79 char *buffer, size_t buffer_size) in erofs_listxattr() argument
/fs/reiserfs/
Dxattr.c521 const void *buffer, size_t buffer_size, int flags) in reiserfs_xattr_set_handle() argument
546 xahash = xattr_hash(buffer, buffer_size); in reiserfs_xattr_set_handle()
547 while (buffer_pos < buffer_size || buffer_pos == 0) { in reiserfs_xattr_set_handle()
552 if (buffer_size - buffer_pos > PAGE_SIZE) in reiserfs_xattr_set_handle()
555 chunk = buffer_size - buffer_pos; in reiserfs_xattr_set_handle()
592 if (err || buffer_size == 0 || !buffer) in reiserfs_xattr_set_handle()
596 new_size = buffer_size + sizeof(struct reiserfs_xattr_header); in reiserfs_xattr_set_handle()
619 const void *buffer, size_t buffer_size, int flags) in reiserfs_xattr_set() argument
624 size_t jbegin_count = reiserfs_xattr_nblocks(inode, buffer_size); in reiserfs_xattr_set()
641 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, PAGE_KERNEL); in ext_tree_prepare_commit()
/fs/f2fs/
Dxattr.h144 size_t buffer_size, struct page *dpage) in f2fs_getxattr() argument
149 size_t buffer_size) in f2fs_listxattr() argument
Dxattr.c495 void *buffer, size_t buffer_size, struct page *ipage) in f2fs_getxattr() argument
519 if (buffer && size > buffer_size) { in f2fs_getxattr()
539 ssize_t f2fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in f2fs_listxattr() argument
546 size_t rest = buffer_size; in f2fs_listxattr()
591 error = buffer_size - rest; in f2fs_listxattr()
/fs/ext2/
Dxattr.c196 void *buffer, size_t buffer_size) in ext2_xattr_get() argument
206 name_index, name, buffer, (long)buffer_size); in ext2_xattr_get()
261 if (size > buffer_size) in ext2_xattr_get()
287 ext2_xattr_list(struct dentry *dentry, char *buffer, size_t buffer_size) in ext2_xattr_list() argument
293 size_t rest = buffer_size; in ext2_xattr_list()
298 buffer, (long)buffer_size); in ext2_xattr_list()
357 error = buffer_size - rest; /* total size */ in ext2_xattr_list()
/fs/ext4/
Dxattr.c513 void *buffer, size_t buffer_size) in ext4_xattr_block_get() argument
523 name_index, name, buffer, (long)buffer_size); in ext4_xattr_block_get()
548 if (size > buffer_size) in ext4_xattr_block_get()
573 void *buffer, size_t buffer_size) in ext4_xattr_ibody_get() argument
603 if (size > buffer_size) in ext4_xattr_ibody_get()
638 void *buffer, size_t buffer_size) in ext4_xattr_get() argument
650 buffer_size); in ext4_xattr_get()
653 buffer_size); in ext4_xattr_get()
660 char *buffer, size_t buffer_size) in ext4_xattr_list_entries() argument
662 size_t rest = buffer_size; in ext4_xattr_list_entries()
[all …]
Dxattr.h187 void *buffer, size_t buffer_size);
/fs/afs/
Dvl_list.c158 size_t buffer_size) in afs_extract_vlserver_list() argument
165 const u8 *b = buffer, *end = buffer + buffer_size; in afs_extract_vlserver_list()
331 print_hex_dump_bytes("DNS: ", DUMP_PREFIX_NONE, buffer, buffer_size); in afs_extract_vlserver_list()
/fs/ocfs2/
Dxattr.c262 size_t buffer_size);
932 char *buffer, size_t buffer_size) in ocfs2_xattr_list_entries() argument
945 buffer, buffer_size, in ocfs2_xattr_list_entries()
975 size_t buffer_size) in ocfs2_xattr_ibody_list() argument
988 ret = ocfs2_xattr_list_entries(inode, header, buffer, buffer_size); in ocfs2_xattr_ibody_list()
996 size_t buffer_size) in ocfs2_xattr_block_list() argument
1016 buffer, buffer_size); in ocfs2_xattr_block_list()
1019 buffer, buffer_size); in ocfs2_xattr_block_list()
1157 size_t buffer_size, in ocfs2_xattr_ibody_get() argument
1180 if (size > buffer_size) in ocfs2_xattr_ibody_get()
[all …]
/fs/
Dbad_inode.c105 size_t buffer_size) in bad_inode_listxattr() argument
Dxattr.c750 generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in generic_listxattr() argument
771 if (len + 1 > buffer_size) in generic_listxattr()
775 buffer_size -= len + 1; in generic_listxattr()
/fs/dlm/
Dconfig.c163 CLUSTER_ATTR(buffer_size, 1);