Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/fs/hpfs/
A Dalloc.c79 …if (sec >= hpfs_sb(s)->sb_dirband_start && sec < hpfs_sb(s)->sb_dirband_start + hpfs_sb(s)->sb_dir… in chk_if_allocated()
107 if (hpfs_sb(s)->sb_chk>=2) { in hpfs_chk_sectors()
305 hpfs_claim_alloc(s, sec); in hpfs_alloc_if_possible()
339 hpfs_claim_free(s, sec); in hpfs_free_sectors()
412 dno >= hpfs_sb(s)->sb_dirband_start + hpfs_sb(s)->sb_dirband_size) { in hpfs_free_dnode()
541 hpfs_lock(s); in hpfs_trim_fs()
542 if (sb_rdonly(s)) { in hpfs_trim_fs()
557 hpfs_unlock(s); in hpfs_trim_fs()
562 hpfs_lock(s); in hpfs_trim_fs()
563 if (sb_rdonly(s)) { in hpfs_trim_fs()
[all …]
A Dmap.c14 return hpfs_map_4sectors(s, hpfs_sb(s)->sb_dmap, qbh, 0); in hpfs_map_dnode_bitmap()
32 ret = hpfs_map_4sectors(s, sec, qbh, 4); in hpfs_map_bitmap()
167 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, ino, 1, "fnode")) { in hpfs_map_fnode()
171 if (hpfs_sb(s)->sb_chk) { in hpfs_map_fnode()
182 hpfs_error(s, in hpfs_map_fnode()
189 hpfs_error(s, in hpfs_map_fnode()
197 hpfs_error(s, in hpfs_map_fnode()
224 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, ano, 1, "anode")) return NULL; in hpfs_map_anode()
226 if (hpfs_sb(s)->sb_chk) { in hpfs_map_anode()
260 if (hpfs_sb(s)->sb_chk) { in hpfs_map_dnode()
[all …]
A Dsuper.c26 if (hpfs_sb(s)->sb_chkdsk && (remount || !sb_rdonly(s))) { in mark_dirty()
49 sb->dirty = hpfs_sb(s)->sb_chkdsk > 1 - hpfs_sb(s)->sb_was_error; in unmark_dirty()
128 hpfs_lock(s); in hpfs_put_super()
129 unmark_dirty(s); in hpfs_put_super()
130 hpfs_unlock(s); in hpfs_put_super()
184 hpfs_lock(s); in hpfs_statfs()
199 hpfs_unlock(s); in hpfs_statfs()
436 hpfs_lock(s); in hpfs_reconfigure()
526 hpfs_lock(s); in hpfs_fill_super()
558 s->s_time_min = local_to_gmt(s, 0); in hpfs_fill_super()
[all …]
A Danode.c23 if (hpfs_sb(s)->sb_chk) if (hpfs_stop_cycles(s, a, &c1, &c2, "hpfs_bplus_lookup")) return -1; in hpfs_bplus_lookup()
41 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, a, 1, "data")) { in hpfs_bplus_lookup()
91 if (hpfs_sb(s)->sb_chk) in hpfs_add_sector_to_btree()
167 if (hpfs_sb(s)->sb_chk) in hpfs_add_sector_to_btree()
290 if (hpfs_sb(s)->sb_chk) in hpfs_remove_btree()
303 if (hpfs_sb(s)->sb_chk) in hpfs_remove_btree()
320 hpfs_error(s, in hpfs_remove_btree()
350 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, sec, 1, "ea #1")) return -1; in hpfs_ea_read()
373 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, sec, 1, "ea #2")) return -1; in hpfs_ea_write()
393 hpfs_free_sectors(s, a, 1); in hpfs_ea_remove()
[all …]
A Dea.c26 if (hpfs_ea_read(s, a, ano, pos, 4, ex)) return; in hpfs_ea_ext_remove()
39 if (!ano) hpfs_free_sectors(s, a, (len+511) >> 9); in hpfs_ea_ext_remove()
43 if ((anode = hpfs_map_anode(s, a, &bh))) { in hpfs_ea_ext_remove()
44 hpfs_remove_btree(s, &anode->btree); in hpfs_ea_ext_remove()
46 hpfs_free_sectors(s, a, 1); in hpfs_ea_ext_remove()
58 if (hpfs_ea_read(s, a, ano, 0, size, ret)) { in get_indirect_ea()
69 hpfs_ea_write(s, a, ano, 0, size, data); in set_indirect_ea()
194 struct super_block *s = inode->i_sb; in hpfs_set_ea() local
272 if (!(data = hpfs_get_sector(s, n, &bh))) { in hpfs_set_ea()
273 hpfs_free_sectors(s, n, 1); in hpfs_set_ea()
[all …]
A Dbuffer.c17 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_search_hotfix_map()
29 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_search_hotfix_map_for_range()
49 bh = sb_find_get_block(s, secno); in hpfs_prefetch_sectors()
62 sb_breadahead(s, secno); in hpfs_prefetch_sectors()
76 hpfs_lock_assert(s); in hpfs_map_sector()
78 hpfs_prefetch_sectors(s, secno, ahead); in hpfs_map_sector()
82 *bhp = bh = sb_bread(s, hpfs_search_hotfix_map(s, secno)); in hpfs_map_sector()
98 hpfs_lock_assert(s); in hpfs_get_sector()
102 if ((*bhp = bh = sb_getblk(s, hpfs_search_hotfix_map(s, secno))) != NULL) { in hpfs_get_sector()
119 hpfs_lock_assert(s); in hpfs_map_4sectors()
[all …]
/fs/bcachefs/
A Dec.h46 return stripe_csum_offset(s, s->nr_blocks, 0) + in stripe_blockcount_offset()
53 return le16_to_cpup((void *) s + stripe_blockcount_offset(s, idx)); in stripe_blockcount_get()
59 __le16 *p = (void *) s + stripe_blockcount_offset(s, idx); in stripe_blockcount_set()
66 return DIV_ROUND_UP(stripe_blockcount_offset(s, s->nr_blocks), in stripe_val_u64s()
76 return (void *) s + stripe_csum_offset(s, block, csum_idx); in stripe_csum()
84 memcpy(&csum, stripe_csum(s, block, csum_idx), bch_crc_bytes[s->csum_type]); in stripe_csum_get()
92 memcpy(stripe_csum(s, block, csum_idx), &csum, bch_crc_bytes[s->csum_type]); in stripe_csum_set()
99 if (!s) in stripe_lru_pos()
102 unsigned nr_data = s->nr_blocks - s->nr_redundant, blocks_empty = 0; in stripe_lru_pos()
133 unsigned nr_data = s->nr_blocks - s->nr_redundant; in bch2_ptr_matches_stripe()
[all …]
A Dec.c150 unsigned nr_data = s.nr_blocks - s.nr_redundant; in bch2_stripe_to_text()
1298 BUG_ON(s->h->s == s); in ec_stripe_create()
1437 struct ec_stripe_new *s = h->s; in ec_stripe_new_set_pending() local
1441 BUG_ON(!s->allocated && !s->err); in ec_stripe_new_set_pending()
1559 s = kzalloc(sizeof(*s), GFP_KERNEL); in ec_new_stripe_alloc()
1574 s->nr_data, s->nr_parity, in ec_new_stripe_alloc()
1661 h->s->nr_data) == h->s->nr_data) in bch2_ec_stripe_head_put()
1778 s->nr_data + s->nr_parity, in new_stripe_alloc_buckets()
1780 BUG_ON(j >= s->nr_data + s->nr_parity); in new_stripe_alloc_buckets()
2036 struct ec_stripe_new *s = h->s; in bch2_ec_stripe_head_get() local
[all …]
A Dbkey_buf.h16 if (s->k == (void *) s->onstack && in bch2_bkey_buf_realloc()
17 u64s > ARRAY_SIZE(s->onstack)) { in bch2_bkey_buf_realloc()
19 memcpy(s->k, s->onstack, sizeof(s->onstack)); in bch2_bkey_buf_realloc()
27 bch2_bkey_buf_realloc(s, c, k.k->u64s); in bch2_bkey_buf_reassemble()
28 bkey_reassemble(s->k, k); in bch2_bkey_buf_reassemble()
36 bkey_copy(s->k, src); in bch2_bkey_buf_copy()
44 bch2_bkey_buf_realloc(s, c, BKEY_U64s + in bch2_bkey_buf_unpack()
46 bch2_bkey_unpack(b, s->k, src); in bch2_bkey_buf_unpack()
51 s->k = (void *) s->onstack; in bch2_bkey_buf_init()
56 if (s->k != (void *) s->onstack) in bch2_bkey_buf_exit()
[all …]
A Dfs-io-pagecache.c130 s = kzalloc(sizeof(*s) + in __bch2_folio_create()
168 s->s[i].nr_replicas = nr_ptrs; in __bch2_folio_set()
281 s->s[j].nr_replicas = 0; in bch2_mark_pagecache_unallocated()
388 s->s[i].replicas_reserved += in bch2_get_folio_disk_reservation()
505 s->s[i].replicas_reserved = 0; in bch2_clear_folio_bits()
508 bch2_folio_sector_set(folio, s, i, folio_sector_undirty(s->s[i].state)); in bch2_clear_folio_bits()
546 s->s[i].replicas_reserved += sectors; in bch2_set_folio_dirty()
551 bch2_folio_sector_set(folio, s, i, folio_sector_dirty(s->s[i].state)); in bch2_set_folio_dirty()
687 s->s[i].nr_replicas + s->s[i].replicas_reserved >= min_replicas) in folio_data_offset()
767 if (s->s[i].state < SECTOR_dirty || in folio_hole_offset()
[all …]
A Dmean_and_variance_test.c10 struct mean_and_variance s = {}; in mean_and_variance_basic_test() local
12 mean_and_variance_update(&s, 2); in mean_and_variance_basic_test()
13 mean_and_variance_update(&s, 2); in mean_and_variance_basic_test()
17 KUNIT_EXPECT_EQ(test, s.n, 2); in mean_and_variance_basic_test()
19 mean_and_variance_update(&s, 4); in mean_and_variance_basic_test()
20 mean_and_variance_update(&s, 4); in mean_and_variance_basic_test()
24 KUNIT_EXPECT_EQ(test, s.n, 4); in mean_and_variance_basic_test()
34 struct mean_and_variance_weighted s = { }; in mean_and_variance_weighted_test() local
48 s = (struct mean_and_variance_weighted) { }; in mean_and_variance_weighted_test()
65 struct mean_and_variance_weighted s = { }; in mean_and_variance_weighted_advanced_test() local
[all …]
A Dsnapshot.c101 id = s ? s->parent : 0; in __bch2_snapshot_is_ancestor_early()
115 if (!s) in get_ancestor_below()
130 if (!s) in test_ancestor_bitmap()
179 memcpy(new->s, old->s, sizeof(old->s[0]) * old->nr); in __snapshot_t_mut()
254 bkey_fsck_err_on(s.v->children[0] && s.v->children[0] == s.v->children[1], in bch2_snapshot_validate()
417 if (s && (!subvol || s < subvol)) in bch2_snapshot_oldest_subvol()
716 memset(&s, 0, sizeof(s)); in check_snapshot()
817 s = u->v; in check_snapshot()
837 s = u->v; in check_snapshot()
1151 swap(s->children[0], s->children[1]); in normalize_snapshot_child_pointers()
[all …]
A Dprogress.c11 memset(s, 0, sizeof(*s)); in bch2_progress_init()
13 s->next_print = jiffies + HZ * 10; in bch2_progress_init()
24 s->nodes_total += div64_ul(v, btree_sectors(c)); in bch2_progress_init()
33 s->next_print = jiffies + HZ * 10; in progress_update_p()
38 struct progress_indicator_state *s, in bch2_progress_update_iter() argument
45 s->nodes_seen += b != s->last_node; in bch2_progress_update_iter()
46 s->last_node = b; in bch2_progress_update_iter()
48 if (progress_update_p(s)) { in bch2_progress_update_iter()
50 unsigned percent = s->nodes_total in bch2_progress_update_iter()
51 ? div64_u64(s->nodes_seen * 100, s->nodes_total) in bch2_progress_update_iter()
[all …]
A Dsnapshot.h38 ? &t->s[idx] in __snapshot_t()
51 return s ? s->tree : 0; in bch2_snapshot_tree()
57 return s ? s->parent : 0; in __bch2_snapshot_parent_early()
69 if (!s) in __bch2_snapshot_parent()
72 u32 parent = s->parent; in __bch2_snapshot_parent()
113 return s ? s->state : SNAPSHOT_ID_empty; in __bch2_snapshot_id_state()
131 return s ? s->children[0] : -BCH_ERR_invalid_snapshot_node; in bch2_snapshot_is_internal_node()
171 darray_for_each(*s, i) in snapshot_list_has_ancestor()
190 : darray_push(s, id); in snapshot_list_add_nodup()
208 struct bch_snapshot *s);
[all …]
A Dmean_and_variance.c67 s64 mean_and_variance_get_mean(struct mean_and_variance s) in mean_and_variance_get_mean() argument
69 return s.n ? div64_u64(s.sum, s.n) : 0; in mean_and_variance_get_mean()
98 return int_sqrt64(mean_and_variance_get_variance(s)); in mean_and_variance_get_stddev()
117 u64 var_w0 = s->variance; in mean_and_variance_weighted_update()
120 s64 diff_w = x_w - s->mean; in mean_and_variance_weighted_update()
123 s64 u_w1 = s->mean + diff; in mean_and_variance_weighted_update()
126 s->mean = x_w; in mean_and_variance_weighted_update()
127 s->variance = 0; in mean_and_variance_weighted_update()
129 s->mean = u_w1; in mean_and_variance_weighted_update()
143 return fast_divpow2(s.mean, weight); in mean_and_variance_weighted_get_mean()
[all …]
A Djournal.h153 case 0: return s.buf0_count; in journal_state_count()
154 case 1: return s.buf1_count; in journal_state_count()
155 case 2: return s.buf2_count; in journal_state_count()
172 s->buf0_count += s->idx == 0; in journal_state_inc()
173 s->buf1_count += s->idx == 1; in journal_state_inc()
174 s->buf2_count += s->idx == 2; in journal_state_inc()
175 s->buf3_count += s->idx == 3; in journal_state_inc()
268 union journal_res_state s; in journal_state_buf_put() local
276 return s; in journal_state_buf_put()
286 union journal_res_state s; in __bch2_journal_buf_put() local
[all …]
/fs/ceph/
A Ddebugfs.c28 struct ceph_fs_client *fsc = s->private; in mdsmap_show()
42 seq_printf(s, "\tmds%d\t%s\t(%s)\n", i, in mdsmap_show()
54 struct ceph_fs_client *fsc = s->private; in mdsc_show()
77 seq_puts(s, "\t(unsafe)"); in mdsc_show()
79 seq_puts(s, "\t"); in mdsc_show()
89 seq_printf(s, " #%llx/%pd (%s)", in mdsc_show()
108 seq_printf(s, " #%llx/%pd (%s)", in mdsc_show()
123 seq_puts(s, "\n"); in mdsc_show()
254 struct seq_file *s = p; in caps_show_cb() local
276 seq_printf(s, "total\t\t%d\n" in caps_show()
[all …]
/fs/
A Dsuper.c284 kfree(s); in destroy_super_work()
297 if (!s) in destroy_unused_super()
323 if (!s) in alloc_super()
387 s->s_shrink->private_data = s; in alloc_super()
393 return s; in alloc_super()
759 if (!s) { in sget_fc()
762 if (!s) in sget_fc()
778 strscpy(s->s_id, s->s_type->name, sizeof(s->s_id)); in sget_fc()
789 return s; in sget_fc()
847 if (!s) in sget()
[all …]
/fs/unicode/
A Dutf8-norm.c76 unsigned char c = *s; in utf8clen()
321 s++; in utf8nlookup()
324 if (*s & mask) { in utf8nlookup()
393 while (len && *s) { in utf8nlen()
405 s += utf8clen(s); in utf8nlen()
423 if (!s) in utf8ncursor()
427 u8c->s = s; in utf8ncursor()
479 u8c->s = u8c->p; in utf8byte()
517 u8c->p = u8c->s + utf8clen(u8c->s); in utf8byte()
565 u8c->s += utf8clen(u8c->s); in utf8byte()
[all …]
/fs/f2fs/
A Ddebug.c458 seq_puts(s, "]\n"); in stat_show()
577 seq_puts(s, "\n"); in stat_show()
587 seq_puts(s, "\n"); in stat_show()
597 seq_puts(s, "\n"); in stat_show()
716 seq_puts(s, " ["); in stat_show()
719 seq_putc(s, '-'); in stat_show()
720 seq_putc(s, '|'); in stat_show()
723 seq_putc(s, '-'); in stat_show()
724 seq_putc(s, '|'); in stat_show()
727 seq_putc(s, '-'); in stat_show()
[all …]
/fs/ecryptfs/
A Dkeystore.c630 s = kzalloc(sizeof(*s), GFP_KERNEL); in ecryptfs_write_tag_70_packet()
661 s->num_rand_bytes += (s->block_size in ecryptfs_write_tag_70_packet()
719 s->i += s->packet_size_len; in ecryptfs_write_tag_70_packet()
735 dest[s->i++] = s->cipher_code; in ecryptfs_write_tag_70_packet()
760 s->hash_desc->tfm = s->hash_tfm; in ecryptfs_write_tag_70_packet()
772 for (s->j = 0; s->j < (s->num_rand_bytes - 1); s->j++) { in ecryptfs_write_tag_70_packet()
773 s->block_aligned_filename[s->j] = in ecryptfs_write_tag_70_packet()
786 memcpy(s->hash, s->tmp_hash, in ecryptfs_write_tag_70_packet()
830 skcipher_request_set_crypt(s->skcipher_req, s->src_sg, s->dst_sg, in ecryptfs_write_tag_70_packet()
906 s = kzalloc(sizeof(*s), GFP_KERNEL); in ecryptfs_parse_tag_70_packet()
[all …]
/fs/dlm/
A Ddebug_fs.c72 seq_putc(s, '\n'); in print_format1_lock()
101 if (seq_has_overflowed(s)) in print_format1()
106 seq_puts(s, "LVB: "); in print_format1()
109 seq_puts(s, "\n "); in print_format1()
110 seq_printf(s, "%02x ", in print_format1()
115 seq_putc(s, '\n'); in print_format1()
156 seq_printf(s, "%08x %s", in print_format1()
160 seq_putc(s, '\n'); in print_format1()
291 seq_putc(s, '\n'); in print_format3()
302 seq_putc(s, '\n'); in print_format3()
[all …]
/fs/smb/client/
A Dcifsfs.c486 seq_puts(s, ",sec="); in cifs_show_security()
505 seq_puts(s, "i"); in cifs_show_security()
561 seq_puts(s, "app"); in cifs_show_upcall_target()
894 char *s, *p; in cifs_get_root() local
909 s = full_path; in cifs_get_root()
922 while (*s == sep) in cifs_get_root()
923 s++; in cifs_get_root()
924 if (!*s) in cifs_get_root()
926 p = s++; in cifs_get_root()
928 while (*s && *s != sep) in cifs_get_root()
[all …]
/fs/qnx6/
A Dinode.c138 bh = sb_bread(s, block); in qnx6_block_map()
308 s->s_fs_info = qs; in qnx6_fill_super()
324 sbi = QNX6_SB(s); in qnx6_fill_super()
360 bh1 = sb_bread(s, bootblock_offset >> s->s_blocksize_bits); in qnx6_fill_super()
420 s->s_op = &qnx6_sops; in qnx6_fill_super()
423 s->s_time_min = 0; in qnx6_fill_super()
427 sbi = QNX6_SB(s); in qnx6_fill_super()
446 if (!s->s_root) in qnx6_fill_super()
459 dput(s->s_root); in qnx6_fill_super()
460 s->s_root = NULL; in qnx6_fill_super()
[all …]
/fs/bfs/
A Dinode.c216 s->s_fs_info = NULL; in bfs_put_super()
324 s->s_fs_info = info; in bfs_fill_super()
325 s->s_time_min = 0; in bfs_fill_super()
326 s->s_time_max = U32_MAX; in bfs_fill_super()
330 sbh = sb_bread(s, 0); in bfs_fill_super()
342 s->s_magic = BFS_MAGIC; in bfs_fill_super()
360 s->s_op = &bfs_sops; in bfs_fill_super()
367 if (!s->s_root) { in bfs_fill_super()
440 dput(s->s_root); in bfs_fill_super()
441 s->s_root = NULL; in bfs_fill_super()
[all …]

Completed in 77 milliseconds

12345678910>>...12