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

/linux-master/fs/
H A Dinode.c954 * Each cpu owns a range of LAST_INO_BATCH numbers.
955 * 'shared_last_ino' is dirtied only once out of LAST_INO_BATCH allocations,
959 * consume at most LAST_INO_BATCH-1 unused inode numbers. So there is
960 * NR_CPUS*(LAST_INO_BATCH-1) wastage. At 4096 and 1024, this is ~0.1% of the
968 #define LAST_INO_BATCH 1024 macro
977 if (unlikely((res & (LAST_INO_BATCH-1)) == 0)) {
979 int next = atomic_add_return(LAST_INO_BATCH, &shared_last_ino);
981 res = next - LAST_INO_BATCH;

Completed in 119 milliseconds