| /fs/bcachefs/ |
| A D | printbuf.c | 20 return __printbuf_linelen(buf, buf->pos); in printbuf_linelen() 28 return buf->cur_tabstop < buf->nr_tabstops in cur_tabstop() 29 ? buf->_tabstops[buf->cur_tabstop] in cur_tabstop() 67 out->buf = buf; in bch2_printbuf_make_room() 207 ? buf->buf in bch2_printbuf_str() 219 kfree(buf->buf); in bch2_printbuf_exit() 312 if (buf->last_newline + buf->indent == buf->pos) { in bch2_printbuf_indent_sub() 318 if (!buf->indent && !buf->nr_tabstops) in bch2_printbuf_indent_sub() 328 buf->last_newline = buf->pos; in bch2_prt_newline() 334 buf->last_field = buf->pos; in bch2_prt_newline() [all …]
|
| A D | thread_with_file.c | 101 darray_init(&buf->buf); in stdio_buf_init() 143 buf->buf.nr -= b; in thread_with_stdio_read() 145 buf->buf.data + b, in thread_with_stdio_read() 146 buf->buf.nr); in thread_with_stdio_read() 190 if (!buf->waiting_for_line || memchr(buf->buf.data, '\n', buf->buf.nr)) in thread_with_stdio_write() 199 buf->buf.nr += b; in thread_with_stdio_write() 354 buf->buf.nr -= ret; in bch2_stdio_redirect_read() 358 buf->buf.nr); in bch2_stdio_redirect_read() 385 seen = buf->buf.nr; in bch2_stdio_redirect_readline_timeout() 409 buf->buf.nr -= b; in bch2_stdio_redirect_readline_timeout() [all …]
|
| A D | error.c | 46 buf.atomic++; in bch2_inconsistent_error() 52 bch_err(c, "%s", buf.buf); in bch2_inconsistent_error() 53 printbuf_exit(&buf); in bch2_inconsistent_error() 62 buf.atomic++; in bch2_fs_trans_inconsistent() 67 prt_newline(&buf); in bch2_fs_trans_inconsistent() 72 bch2_print_str(c, KERN_ERR, buf.buf); in bch2_fs_trans_inconsistent() 122 bch2_print_str(c, KERN_ERR, buf.buf); in bch2_fs_topology_error() 161 bch2_print_str(c, KERN_ERR, buf.buf); in bch2_io_error_work() 187 buf = strim(buf); in parse_yn_response() 265 free(buf); in bch2_fsck_ask_yn() [all …]
|
| A D | debug.c | 313 int copied = bytes - copy_to_user(i->ubuf, i->buf.buf, bytes); in bch2_debugfs_flush_buf() 319 memmove(i->buf.buf, i->buf.buf + copied, i->buf.pos); in bch2_debugfs_flush_buf() 366 i->ubuf = buf; in bch2_read_btree() 396 i->ubuf = buf; in bch2_read_btree_formats() 430 i->ubuf = buf; in bch2_read_bfloat_failed() 506 i->ubuf = buf; in bch2_cached_btree_nodes_read() 584 i->ubuf = buf; in bch2_btree_transactions_read() 654 i->ubuf = buf; in bch2_journal_pins_read() 693 i->ubuf = buf; in bch2_btree_updates_read() 753 i->ubuf = buf; in btree_transaction_stats_read() [all …]
|
| A D | journal.c | 48 struct journal_buf *buf = j->buf + i; in bch2_journal_buf_to_text() local 113 buf = j->buf + (seq & JOURNAL_BUF_MASK); in journal_seq_to_buf() 177 bch2_print_str(c, KERN_ERR, buf.buf); in journal_error_check_stuck() 181 bch_err(c, "Journal pins:\n%s", buf.buf); in journal_error_check_stuck() 390 struct journal_buf *buf = j->buf + in journal_entry_open() local 443 buf->sectors = min(buf->disk_sectors, buf->buf_size >> 9); in journal_entry_open() 484 memset(buf->data, 0, sizeof(*buf->data)); in journal_entry_open() 664 trace_journal_entry_full(c, buf.buf); in __journal_res_get() 681 trace_journal_entry_full(c, buf.buf); in __journal_res_get() 756 bch2_print_str(c, KERN_ERR, buf.buf); in bch2_journal_res_get_slowpath() [all …]
|
| A D | backpointers.c | 147 bch_err(c, "%s", buf.buf); in backpointer_mod_err() 244 "%s", buf.buf)) { in backpointer_target_not_found() 402 (bch2_bkey_val_to_text(&buf, c, k), buf.buf))) in bch2_check_backpointer_has_valid_bucket() 420 (bch2_bkey_val_to_text(&buf, c, k), buf.buf))) in bch2_check_backpointer_has_valid_bucket() 524 "%s", buf.buf)) in check_extent_checksum() 612 bch_err(c, "%s", buf.buf); in check_bp_exists() 653 bch_err(c, "%s", buf.buf); in check_bp_exists() 665 if (fsck_err(trans, ptr_to_missing_backpointer, "%s", buf.buf)) in check_bp_exists() 1156 bch_verbose(c, "%s", buf.buf); in bch2_check_extents_to_backpointers() 1224 bch2_print_str(c, KERN_ERR, buf.buf); in bch2_check_bucket_backpointer_mismatch() [all …]
|
| /fs/ |
| A D | statfs.c | 62 memset(buf, 0, sizeof(*buf)); in statfs_by_dentry() 68 buf->f_frsize = buf->f_bsize; in statfs_by_dentry() 126 struct statfs buf; in do_statfs_native() local 131 memset(&buf, 0, sizeof(buf)); in do_statfs_native() 161 if (copy_to_user(p, &buf, sizeof(buf))) in do_statfs_native() 168 struct statfs64 buf; in do_statfs64() local 172 memset(&buf, 0, sizeof(buf)); in do_statfs64() 185 if (copy_to_user(p, &buf, sizeof(buf))) in do_statfs64() 203 if (sz != sizeof(*buf)) in SYSCALL_DEFINE3() 225 if (sz != sizeof(*buf)) in SYSCALL_DEFINE3() [all …]
|
| A D | readdir.c | 189 if (buf->result) in fillonedir() 192 if (buf->result) in fillonedir() 199 buf->result++; in fillonedir() 233 if (buf.result) in SYSCALL_DEFINE3() 331 lastdirent = (void __user *)buf.current_dir - buf.prev_reclen; in SYSCALL_DEFINE3() 417 lastdirent = (void __user *) buf.current_dir - buf.prev_reclen; in SYSCALL_DEFINE3() 449 if (buf->result) in compat_fillonedir() 452 if (buf->result) in compat_fillonedir() 459 buf->result++; in compat_fillonedir() 493 if (buf.result) in COMPAT_SYSCALL_DEFINE3() [all …]
|
| /fs/ocfs2/dlm/ |
| A D | dlmdebug.c | 89 buf, sizeof(buf)); in __dlm_print_one_lock_resource() 261 char *buf; in dlm_print_one_mle() local 264 if (buf) { in dlm_print_one_mle() 328 char *buf = NULL; in debug_purgelist_open() local 331 if (!buf) in debug_purgelist_open() 385 char *buf = NULL; in debug_mle_open() local 388 if (!buf) in debug_mle_open() 562 void *buf; in debug_lockres_open() local 565 if (!buf) in debug_lockres_open() 581 kfree(buf); in debug_lockres_open() [all …]
|
| /fs/smb/server/ |
| A D | asn1.c | 96 char *buf; in build_spnego_ntlmssp_neg_blob() local 108 if (!buf) in build_spnego_ntlmssp_neg_blob() 117 buf[ofs++] = 1; in build_spnego_ntlmssp_neg_blob() 129 *pbuffer = buf; in build_spnego_ntlmssp_neg_blob() 137 char *buf; in build_spnego_ntlmssp_auth_blob() local 144 if (!buf) in build_spnego_ntlmssp_auth_blob() 157 *pbuffer = buf; in build_spnego_ntlmssp_auth_blob() 169 char buf[50]; in ksmbd_gssapi_this_mech() local 171 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_gssapi_this_mech() 197 char buf[50]; in ksmbd_neg_token_init_mech_type() local [all …]
|
| A D | oplock.c | 1607 buf->Name[0] = 'D'; in create_durable_rsp_buf() 1608 buf->Name[1] = 'H'; in create_durable_rsp_buf() 1609 buf->Name[2] = 'n'; in create_durable_rsp_buf() 1610 buf->Name[3] = 'Q'; in create_durable_rsp_buf() 1631 buf->Name[0] = 'D'; in create_durable_v2_rsp_buf() 1632 buf->Name[1] = 'H'; in create_durable_v2_rsp_buf() 1633 buf->Name[2] = '2'; in create_durable_v2_rsp_buf() 1634 buf->Name[3] = 'Q'; in create_durable_v2_rsp_buf() 1659 buf->Name[0] = 'M'; in create_mxac_rsp_buf() 1660 buf->Name[1] = 'x'; in create_mxac_rsp_buf() [all …]
|
| /fs/nilfs2/ |
| A D | sysfs.c | 266 char *buf) in nilfs_checkpoints_snapshots_number_show() argument 303 char *buf) in nilfs_checkpoints_next_checkpoint_show() argument 365 char *buf) in nilfs_segments_blocks_per_segment_show() argument 462 char *buf) in nilfs_segctor_last_seg_sequence_show() argument 476 char *buf) in nilfs_segctor_last_seg_checkpoint_show() argument 490 char *buf) in nilfs_segctor_current_seg_sequence_show() argument 518 char *buf) in nilfs_segctor_next_full_seg_show() argument 532 char *buf) in nilfs_segctor_next_pseg_offset_show() argument 546 char *buf) in nilfs_segctor_next_checkpoint_show() argument 560 char *buf) in nilfs_segctor_last_seg_write_time_show() argument [all …]
|
| /fs/cachefiles/ |
| A D | xattr.c | 54 if (!buf) in cachefiles_set_object_xattr() 58 buf->zero_point = 0; in cachefiles_set_object_xattr() 81 buf->content, in cachefiles_set_object_xattr() 94 kfree(buf); in cachefiles_set_object_xattr() 114 if (!buf) in cachefiles_check_auxdata() 153 kfree(buf); in cachefiles_check_auxdata() 224 if (!buf) in cachefiles_set_volume_xattr() 252 kfree(buf); in cachefiles_set_volume_xattr() 274 if (!buf) in cachefiles_check_volume_xattr() 293 } else if (memcmp(buf->data, p, len - sizeof(*buf)) != 0) { in cachefiles_check_volume_xattr() [all …]
|
| /fs/xfs/ |
| A D | xfs_sysfs.c | 44 char *buf) in xfs_sysfs_object_show() argument 108 char *buf) in bug_on_assert_show() argument 138 char *buf) in log_recovery_delay_show() argument 168 char *buf) in mount_delay_show() argument 191 char *buf) in always_cow_show() argument 226 char *buf) in pwork_threads_show() argument 258 char *buf) in larp_show() argument 284 char *buf) in bload_leaf_slack_show() argument 310 char *buf) in bload_node_slack_show() argument 350 char *buf) in stats_show() argument [all …]
|
| A D | xfs_itable.c | 74 struct xfs_bulkstat *buf = bc->buf; in xfs_bulkstat_one_int() local 110 memset(buf, 0, sizeof(*buf)); in xfs_bulkstat_one_int() 111 buf->bs_ino = ino; in xfs_bulkstat_one_int() 137 buf->bs_ino = ino; in xfs_bulkstat_one_int() 177 buf->bs_blocks = 0; in xfs_bulkstat_one_int() 180 buf->bs_rdev = 0; in xfs_bulkstat_one_int() 186 buf->bs_rdev = 0; in xfs_bulkstat_one_int() 235 if (!bc.buf) in xfs_bulkstat_one() 246 kfree(bc.buf); in xfs_bulkstat_one() 322 if (!bc.buf) in xfs_bulkstat() [all …]
|
| /fs/hostfs/ |
| A D | hostfs_user.c | 23 p->ino = buf->stx_ino; in statx_to_hostfs() 24 p->mode = buf->stx_mode; in statx_to_hostfs() 25 p->nlink = buf->stx_nlink; in statx_to_hostfs() 26 p->uid = buf->stx_uid; in statx_to_hostfs() 27 p->gid = buf->stx_gid; in statx_to_hostfs() 28 p->size = buf->stx_size; in statx_to_hostfs() 42 p->blocks = buf->stx_blocks; in statx_to_hostfs() 51 struct statx buf; in stat_file() local 62 statx_to_hostfs(&buf, p); in stat_file() 356 buf[n] = '\0'; in hostfs_do_readlink() [all …]
|
| /fs/gfs2/ |
| A D | sys.c | 37 char *buf) in gfs2_attr_show() argument 71 s = snprintf(buf, PAGE_SIZE, in status_show() 150 buf[0] = '\0'; in uuid_show() 168 error = kstrtoint(buf, 0, &n); in freeze_store() 207 error = kstrtoint(buf, 0, &val); in withdraw_store() 268 error = kstrtou32(buf, 0, &id); in quota_refresh_user_store() 290 error = kstrtou32(buf, 0, &id); in quota_refresh_group_store() 420 ret = kstrtoint(buf, 0, &val); in block_store() 447 ret = kstrtoint(buf, 0, &val); in wdack_store() 536 rv = sscanf(buf, "%u", &jid); in recover_store() [all …]
|
| /fs/ext4/ |
| A D | hash.c | 19 __u32 b0 = buf[0], b1 = buf[1]; in TEA_transform() 29 buf[0] += b0; in TEA_transform() 30 buf[1] += b1; in TEA_transform() 55 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() 87 buf[0] += a; in half_md4_transform() 88 buf[1] += b; in half_md4_transform() 89 buf[2] += c; in half_md4_transform() 90 buf[3] += d; in half_md4_transform() 156 *buf++ = val; in str2hashbuf_signed() 158 *buf++ = pad; in str2hashbuf_signed() [all …]
|
| A D | sysfs.c | 69 return sysfs_emit(buf, "%lu\n", in session_write_kbytes_show() 78 return sysfs_emit(buf, "%llu\n", in lifetime_write_kbytes_show() 85 const char *buf, size_t count) in inode_readahead_blks_store() argument 102 const char *buf, size_t count) in reserved_clusters_store() argument 118 const char *buf, size_t count) in trigger_test_error() argument 125 if (len && buf[len-1] == '\n') in trigger_test_error() 137 return sysfs_emit(buf, "%d\n", in journal_task_show() 374 return sysfs_emit(buf, "%lld\n", in __print_tstamp() 423 return sysfs_emit(buf, "%llu\n", in ext4_attr_show() 431 return sysfs_emit(buf, "%llu\n", in ext4_attr_show() [all …]
|
| /fs/smb/client/ |
| A D | reparse.c | 210 if (!buf) { in create_native_symlink() 242 kfree(buf); in create_native_symlink() 394 .reparse = { .tag = IO_REPARSE_TAG_AF_UNIX, .buf = &buf, }, in create_native_socket() 397 .iov_base = &buf, in create_native_socket() 445 buf->Reserved = 0; in nfs_set_reparse_buf() 533 if (!*buf) in wsl_set_reparse_buf() 676 kfree(buf); in mknod_wsl() 682 .reparse = { .tag = le32_to_cpu(buf->ReparseTag), .buf = buf, }, in mknod_wsl() 701 kfree(buf); in mknod_wsl() 1068 data->reparse.buf = buf; in parse_reparse_point() [all …]
|
| /fs/quota/ |
| A D | quota_tree.c | 121 if (!buf) in get_free_dqblk() 144 kfree(buf); in get_free_dqblk() 268 if (!buf) { in find_free_dqentry() 327 kfree(buf); in find_free_dqentry() 330 kfree(buf); in find_free_dqentry() 344 if (!buf) in do_insert_tree() 486 if (!buf) in free_dqentry() 553 if (!buf) in remove_tree() 630 if (!buf) in find_block_dqentry() 669 if (!buf) in find_tree_dqentry() [all …]
|
| /fs/squashfs/ |
| A D | xz_wrapper.c | 26 struct xz_buf buf; member 129 stream->buf.in_pos = 0; in squashfs_xz_uncompress() 130 stream->buf.in_size = 0; in squashfs_xz_uncompress() 131 stream->buf.out_pos = 0; in squashfs_xz_uncompress() 134 if (IS_ERR(stream->buf.out)) { in squashfs_xz_uncompress() 142 if (stream->buf.in_pos == stream->buf.in_size) { in squashfs_xz_uncompress() 156 stream->buf.in_size = avail; in squashfs_xz_uncompress() 157 stream->buf.in_pos = 0; in squashfs_xz_uncompress() 161 if (stream->buf.out_pos == stream->buf.out_size) { in squashfs_xz_uncompress() 163 if (IS_ERR(stream->buf.out)) { in squashfs_xz_uncompress() [all …]
|
| /fs/btrfs/ |
| A D | sysfs.c | 394 char *buf) in supported_rescue_options_show() argument 409 char *buf) in supported_sectorsizes_show() argument 466 char *buf) in btrfs_discardable_bytes_show() argument 521 char *buf) in btrfs_discard_iops_limit_show() argument 552 char *buf) in btrfs_discard_kbps_limit_show() argument 582 char *buf) in btrfs_discard_max_discard_size_show() argument 947 char *buf) in btrfs_sinfo_dynamic_reclaim_show() argument 980 char *buf) in btrfs_sinfo_periodic_reclaim_show() argument 2394 char *buf) in qgroup_enabled_show() argument 2409 char *buf) in qgroup_mode_show() argument [all …]
|
| /fs/erofs/ |
| A D | data.c | 13 if (!buf->base) in erofs_unmap_metabuf() 15 kunmap_local(buf->base); in erofs_unmap_metabuf() 16 buf->base = NULL; in erofs_unmap_metabuf() 21 if (!buf->page) in erofs_put_metabuf() 25 buf->page = NULL; in erofs_put_metabuf() 33 if (buf->page) { in erofs_bread() 40 folio = read_mapping_folio(buf->mapping, index, buf->file); in erofs_bread() 47 if (!buf->base) in erofs_bread() 48 buf->base = kmap_local_page(buf->page); in erofs_bread() 57 buf->file = NULL; in erofs_init_metabuf() [all …]
|
| /fs/ubifs/ |
| A D | scan.c | 31 uint8_t *p = buf; in scan_padding_bytes() 60 struct ubifs_ch *ch = buf; in ubifs_scan_a_node() 139 sleb->buf = sbuf; in ubifs_start_scan() 182 void *buf, int offs) in ubifs_add_snod() argument 184 struct ubifs_ch *ch = buf; in ubifs_add_snod() 196 snod->node = buf; in ubifs_add_snod() 226 void *buf) in ubifs_scanned_corruption() argument 257 void *buf = sbuf + offs; in ubifs_scan() local 278 buf += ret; in ubifs_scan() 309 buf += node_len; in ubifs_scan() [all …]
|