/fs/pstore/ |
D | ram_core.c | 42 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 …]
|
D | zone.c | 84 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 …]
|
D | ram.c | 384 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/ |
D | xattr.c | 26 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/ |
D | xattr.c | 328 int buffer_size, index; member 353 int err = it->buffer_size < value_sz ? -ERANGE : 0; in xattr_checkbuffer() 355 it->buffer_size = value_sz; in xattr_checkbuffer() 392 return ret ? ret : it->buffer_size; in inline_getxattr() 428 return ret ? ret : it->buffer_size; in shared_getxattr() 443 void *buffer, size_t buffer_size) in erofs_getxattr() argument 463 it.buffer_size = buffer_size; in erofs_getxattr() 535 int buffer_size, buffer_ofs; member 561 + entry->e_name_len + 1 > it->buffer_size) in xattr_entrylist() 653 char *buffer, size_t buffer_size) in erofs_listxattr() argument [all …]
|
D | xattr.h | 74 size_t buffer_size) in erofs_getxattr() argument
|
/fs/reiserfs/ |
D | xattr.c | 521 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/ |
D | xattr.c | 27 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/ |
D | extent_tree.c | 492 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/ |
D | xattr.c | 197 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/ |
D | xattr.c | 525 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 …]
|
D | xattr.h | 202 void *buffer, size_t buffer_size);
|
/fs/afs/ |
D | vl_list.c | 159 size_t buffer_size) in afs_extract_vlserver_list() argument 166 const u8 *b = buffer, *end = buffer + buffer_size; in afs_extract_vlserver_list() 332 print_hex_dump_bytes("DNS: ", DUMP_PREFIX_NONE, buffer, buffer_size); in afs_extract_vlserver_list()
|
/fs/f2fs/ |
D | xattr.c | 516 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() 612 error = buffer_size - rest; in f2fs_listxattr()
|
D | xattr.h | 148 size_t buffer_size, struct page *dpage) in f2fs_getxattr() argument
|
/fs/ocfs2/ |
D | xattr.c | 262 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/ |
D | bad_inode.c | 106 size_t buffer_size) in bad_inode_listxattr() argument
|
D | xattr.c | 847 generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in generic_listxattr() argument 868 if (len + 1 > buffer_size) in generic_listxattr() 872 buffer_size -= len + 1; in generic_listxattr()
|
/fs/dlm/ |
D | config.c | 187 CLUSTER_ATTR(buffer_size, dlm_check_buffer_size);
|