| /fs/proc/ |
| A D | proc_sysctl.c | 196 head->ctl_table = table; in init_header() 444 mode = table->mode; in sysctl_perm() 471 ei->sysctl_entry = table; in proc_sys_make_inode() 576 if (!table->proc_handler) in proc_sys_call_handler() 600 error = table->proc_handler(table, write, kbuf, &count, &iocb->ki_pos); in proc_sys_call_handler() 638 if (table->poll) in proc_sys_open() 661 if (!table->poll) in proc_sys_poll() 850 if (table) in proc_sys_getattr() 961 struct ctl_table *table; in new_dir() local 1122 if (table->extra1) { in sysctl_check_table_array() [all …]
|
| /fs/squashfs/ |
| A D | xattr_id.c | 64 __le64 *table; in squashfs_read_xattr_id_table() local 95 table = squashfs_read_table(sb, start, len); in squashfs_read_xattr_id_table() 96 if (IS_ERR(table)) in squashfs_read_xattr_id_table() 97 return table; in squashfs_read_xattr_id_table() 109 start = le64_to_cpu(table[n]); in squashfs_read_xattr_id_table() 110 end = le64_to_cpu(table[n + 1]); in squashfs_read_xattr_id_table() 114 kfree(table); in squashfs_read_xattr_id_table() 119 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_xattr_id_table() 122 kfree(table); in squashfs_read_xattr_id_table() 127 kfree(table); in squashfs_read_xattr_id_table() [all …]
|
| A D | id.c | 66 __le64 *table; in squashfs_read_id_index_table() local 84 table = squashfs_read_table(sb, id_table_start, length); in squashfs_read_id_index_table() 85 if (IS_ERR(table)) in squashfs_read_id_index_table() 86 return table; in squashfs_read_id_index_table() 97 start = le64_to_cpu(table[n]); in squashfs_read_id_index_table() 98 end = le64_to_cpu(table[n + 1]); in squashfs_read_id_index_table() 102 kfree(table); in squashfs_read_id_index_table() 107 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_id_index_table() 110 kfree(table); in squashfs_read_id_index_table() 114 return table; in squashfs_read_id_index_table()
|
| A D | export.c | 121 __le64 *table; in squashfs_read_inode_lookup_table() local 139 table = squashfs_read_table(sb, lookup_table_start, length); in squashfs_read_inode_lookup_table() 140 if (IS_ERR(table)) in squashfs_read_inode_lookup_table() 141 return table; in squashfs_read_inode_lookup_table() 152 start = le64_to_cpu(table[n]); in squashfs_read_inode_lookup_table() 153 end = le64_to_cpu(table[n + 1]); in squashfs_read_inode_lookup_table() 158 kfree(table); in squashfs_read_inode_lookup_table() 163 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_inode_lookup_table() 167 kfree(table); in squashfs_read_inode_lookup_table() 171 return table; in squashfs_read_inode_lookup_table()
|
| A D | fragment.c | 67 __le64 *table; in squashfs_read_fragment_index_table() local 77 table = squashfs_read_table(sb, fragment_table_start, length); in squashfs_read_fragment_index_table() 83 if (!IS_ERR(table) && le64_to_cpu(table[0]) >= fragment_table_start) { in squashfs_read_fragment_index_table() 84 kfree(table); in squashfs_read_fragment_index_table() 88 return table; in squashfs_read_fragment_index_table()
|
| /fs/jbd2/ |
| A D | revoke.c | 222 struct jbd2_revoke_table_s *table; in jbd2_journal_init_revoke_table() local 225 if (!table) in jbd2_journal_init_revoke_table() 231 table->hash_size = hash_size; in jbd2_journal_init_revoke_table() 232 table->hash_shift = shift; in jbd2_journal_init_revoke_table() 233 table->hash_table = in jbd2_journal_init_revoke_table() 235 if (!table->hash_table) { in jbd2_journal_init_revoke_table() 237 table = NULL; in jbd2_journal_init_revoke_table() 245 return table; in jbd2_journal_init_revoke_table() 253 for (i = 0; i < table->hash_size; i++) { in jbd2_journal_destroy_revoke_table() 254 hash_list = &table->hash_table[i]; in jbd2_journal_destroy_revoke_table() [all …]
|
| /fs/ |
| A D | aio.c | 364 if (!table) in aio_ring_mremap() 370 ctx = rcu_dereference(table->table[i]); in aio_ring_mremap() 679 if (!rcu_access_pointer(table->table[i])) { in ioctx_add_table() 681 rcu_assign_pointer(table->table[i], ctx); in ioctx_add_table() 693 new_nr = (table ? table->nr : 1) * 4; in ioctx_add_table() 696 table = kzalloc(struct_size(table, table, new_nr), GFP_KERNEL); in ioctx_add_table() 708 memcpy(table->table, old->table, in ioctx_add_table() 861 RCU_INIT_POINTER(table->table[ctx->id], NULL); in kill_ioctx() 907 rcu_dereference_protected(table->table[i], true); in exit_aio() 1089 if (!table || id >= table->nr) in lookup_ioctx() [all …]
|
| A D | select.c | 102 ((unsigned long)((table)->entry+1) > PAGE_SIZE + (unsigned long)(table)) 125 pwq->table = NULL; in poll_initwait() 160 struct poll_table_page *table = p->table; in poll_get_entry() local 165 if (!table || POLL_TABLE_FULL(table)) { in poll_get_entry() 175 p->table = new_table; in poll_get_entry() 176 table = new_table; in poll_get_entry() 179 return table->entry++; in poll_get_entry() 501 poll_initwait(&table); in do_select() 502 wait = &table.pt; in do_select() 577 if (table.error) { in do_select() [all …]
|
| /fs/bcachefs/ |
| A D | sb-downgrade.c | 256 unsigned dst_offset = table->nr; in downgrade_table_extra() 268 ret = darray_make_room(table, bytes); in downgrade_table_extra() 272 dst = (void *) &table->data[dst_offset]; in downgrade_table_extra() 375 darray_char table = {}; in bch2_sb_downgrade_update() local 390 ret = darray_make_room(&table, bytes); in bch2_sb_downgrade_update() 394 dst = (void *) &darray_top(table); in bch2_sb_downgrade_update() 402 ret = downgrade_table_extra(c, &table); in bch2_sb_downgrade_update() 416 unsigned sb_u64s = DIV_ROUND_UP(sizeof(*d) + table.nr, sizeof(u64)); in bch2_sb_downgrade_update() 427 memcpy(d->entries, table.data, table.nr); in bch2_sb_downgrade_update() 428 memset_u64s_tail(d->entries, 0, table.nr); in bch2_sb_downgrade_update() [all …]
|
| A D | movinggc.c | 31 struct rhashtable *table; member 101 int ret = rhashtable_remove_fast(list->table, &b->hash, in move_bucket_free() 136 return rhashtable_lookup_fast(list->table, &k, bch_move_bucket_params); in bucket_in_flight() 188 ret2 = rhashtable_lookup_insert_fast(buckets_in_flight->table, &b_i->hash, in bch2_copygc_get_buckets() 353 buckets.table = kzalloc(sizeof(*buckets.table), GFP_KERNEL); in bch2_copygc_thread() 354 int ret = !buckets.table in bch2_copygc_thread() 356 : rhashtable_init(buckets.table, &bch_move_bucket_params); in bch2_copygc_thread() 427 rhashtable_destroy(buckets.table); in bch2_copygc_thread() 431 kfree(buckets.table); in bch2_copygc_thread()
|
| A D | btree_key_cache.c | 60 return rhashtable_lookup_fast(&c->btree_key_cache.table, &key, in bch2_btree_key_cache_find() 85 bool ret = !rhashtable_remove_fast(&c->table, &ck->hash, in bkey_cached_evict() 192 struct bucket_table *tbl = rht_dereference_rcu(c->table.tbl, &c->table); in bkey_cached_reuse() 276 ret = rhashtable_lookup_insert_fast(&bc->table, &ck->hash, bch2_btree_key_cache_params); in btree_key_cache_create() 675 tbl = rht_dereference_rcu(bc->table.tbl, &bc->table); in bch2_btree_key_cache_scan() 775 tbl = rht_dereference_rcu(bc->table.tbl, &bc->table); in bch2_fs_btree_key_cache_exit() 780 mutex_lock(&bc->table.mutex); in bch2_fs_btree_key_cache_exit() 781 mutex_unlock(&bc->table.mutex); in bch2_fs_btree_key_cache_exit() 806 rhashtable_destroy(&bc->table); in bch2_fs_btree_key_cache_exit() 831 if (rhashtable_init(&bc->table, &bch2_btree_key_cache_params)) in bch2_fs_btree_key_cache_init() [all …]
|
| /fs/nls/ |
| A D | nls_koi8-ru.c | 54 static struct nls_table table = { variable 65 table.charset2upper = p_nls->charset2upper; in init_nls_koi8_ru() 66 table.charset2lower = p_nls->charset2lower; in init_nls_koi8_ru() 67 return register_nls(&table); in init_nls_koi8_ru() 75 unregister_nls(&table); in exit_nls_koi8_ru()
|
| A D | nls_ascii.c | 145 static struct nls_table table = { variable 155 return register_nls(&table); in init_nls_ascii() 160 unregister_nls(&table); in exit_nls_ascii()
|
| A D | nls_iso8859-1.c | 236 static struct nls_table table = { variable 246 return register_nls(&table); in init_nls_iso8859_1() 251 unregister_nls(&table); in exit_nls_iso8859_1()
|
| A D | nls_iso8859-2.c | 287 static struct nls_table table = { variable 297 return register_nls(&table); in init_nls_iso8859_2() 302 unregister_nls(&table); in exit_nls_iso8859_2()
|
| A D | nls_iso8859-3.c | 287 static struct nls_table table = { variable 297 return register_nls(&table); in init_nls_iso8859_3() 302 unregister_nls(&table); in exit_nls_iso8859_3()
|
| A D | nls_iso8859-4.c | 287 static struct nls_table table = { variable 297 return register_nls(&table); in init_nls_iso8859_4() 302 unregister_nls(&table); in exit_nls_iso8859_4()
|
| A D | nls_iso8859-6.c | 242 static struct nls_table table = { variable 252 return register_nls(&table); in init_nls_iso8859_6() 257 unregister_nls(&table); in exit_nls_iso8859_6()
|
| A D | nls_iso8859-9.c | 251 static struct nls_table table = { variable 261 return register_nls(&table); in init_nls_iso8859_9() 266 unregister_nls(&table); in exit_nls_iso8859_9()
|
| A D | nls_utf8.c | 43 static struct nls_table table = { variable 57 return register_nls(&table); in init_nls_utf8() 62 unregister_nls(&table); in exit_nls_utf8()
|
| A D | nls_cp863.c | 360 static struct nls_table table = { variable 370 return register_nls(&table); in init_nls_cp863() 375 unregister_nls(&table); in exit_nls_cp863()
|
| A D | nls_cp865.c | 366 static struct nls_table table = { variable 376 return register_nls(&table); in init_nls_cp865() 381 unregister_nls(&table); in exit_nls_cp865()
|
| A D | nls_cp866.c | 284 static struct nls_table table = { variable 294 return register_nls(&table); in init_nls_cp866() 299 unregister_nls(&table); in exit_nls_cp866()
|
| /fs/udf/ |
| A D | balloc.c | 361 struct inode *table, in udf_table_free_blocks() argument 376 iinfo = UDF_I(table); in udf_table_free_blocks() 410 udf_write_aext(table, &oepos, &eloc, elen, 1); in udf_table_free_blocks() 429 udf_write_aext(table, &oepos, &eloc, elen, 1); in udf_table_free_blocks() 481 __udf_add_aext(table, &epos, &eloc, elen, 1); in udf_table_free_blocks() 493 struct inode *table, uint16_t partition, in udf_table_prealloc_blocks() argument 508 iinfo = UDF_I(table); in udf_table_prealloc_blocks() 540 udf_write_aext(table, &epos, &eloc, in udf_table_prealloc_blocks() 543 udf_delete_aext(table, epos); in udf_table_prealloc_blocks() 569 struct udf_inode_info *iinfo = UDF_I(table); in udf_table_new_block() [all …]
|
| /fs/btrfs/ |
| A D | raid56.c | 133 struct btrfs_stripe_hash table[]; member 218 table = kvzalloc(struct_size(table, table, num_entries), GFP_KERNEL); in btrfs_alloc_stripe_hash_table() 219 if (!table) in btrfs_alloc_stripe_hash_table() 225 h = table->table; in btrfs_alloc_stripe_hash_table() 449 h = table->table + bucket; in __remove_rbio_from_cache() 464 table->cache_size -= 1; in __remove_rbio_from_cache() 504 spin_lock(&table->cache_lock); in remove_rbio_from_cache() 506 spin_unlock(&table->cache_lock); in remove_rbio_from_cache() 519 spin_lock(&table->cache_lock); in btrfs_clear_rbio_cache() 561 spin_lock(&table->cache_lock); in cache_rbio() [all …]
|