Function report |
Source Code:fs\quota\dquot.c |
Create Date:2022-07-28 20:32:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dquot_init
Proto:static int __init dquot_init(void)
Type:int
Parameter:Nothing
2961 | order = 0 |
2962 | dquot_hash = Common helper functions. Never use with __GFP_HIGHMEM because the returned* address cannot represent highmem pages. Use alloc_pages and then kmap if* you need to access high mem. |
2963 | If Not dquot_hash Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
2966 | When i < _DQST_DQSTAT_LAST cycle |
2967 | ret = percpu_counter_init( & counter[i], 0, GFP_KERNEL) |
2973 | nr_hash = (1UL << order) * PAGE_SIZE / sizeof(structhlist_head) |
2976 | nr_hash = 1UL << dq_hash_bits |
2977 | dq_hash_mask = nr_hash - 1 |
2978 | When i < nr_hash cycle INIT_HLIST_HEAD(dquot_hash + i) |
2981 | pr_info("VFS: Dquot-cache hash table entries: %ld (order %ld, %ld bytes)\n", nr_hash, order, (PAGE_SIZE << order)) |
2984 | If register_shrinker( & dqcache_shrinker) Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
2987 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |