Home
last modified time | relevance | path

Searched refs:LAST_INO_BATCH (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/fs/
H A Dinode.c913 * Each cpu owns a range of LAST_INO_BATCH numbers.
914 * 'shared_last_ino' is dirtied only once out of LAST_INO_BATCH allocations,
918 * consume at most LAST_INO_BATCH-1 unused inode numbers. So there is
919 * NR_CPUS*(LAST_INO_BATCH-1) wastage. At 4096 and 1024, this is ~0.1% of the
927 #define LAST_INO_BATCH 1024 macro
936 if (unlikely((res & (LAST_INO_BATCH-1)) == 0)) { in get_next_ino()
938 int next = atomic_add_return(LAST_INO_BATCH, &shared_last_ino); in get_next_ino()
940 res = next - LAST_INO_BATCH; in get_next_ino()
/kernel/linux/linux-6.6/fs/
H A Dinode.c953 * Each cpu owns a range of LAST_INO_BATCH numbers.
954 * 'shared_last_ino' is dirtied only once out of LAST_INO_BATCH allocations,
958 * consume at most LAST_INO_BATCH-1 unused inode numbers. So there is
959 * NR_CPUS*(LAST_INO_BATCH-1) wastage. At 4096 and 1024, this is ~0.1% of the
967 #define LAST_INO_BATCH 1024 macro
976 if (unlikely((res & (LAST_INO_BATCH-1)) == 0)) { in get_next_ino()
978 int next = atomic_add_return(LAST_INO_BATCH, &shared_last_ino); in get_next_ino()
980 res = next - LAST_INO_BATCH; in get_next_ino()

Completed in 7 milliseconds