Lines Matching refs:ENTRIES_PER_PAGE
40 #define ENTRIES_PER_PAGE (PAGE_CACHE_SIZE/sizeof(unsigned long)) macro
41 #define ENTRIES_PER_PAGEPAGE (ENTRIES_PER_PAGE*ENTRIES_PER_PAGE)
44 #define SHMEM_MAX_INDEX (SHMEM_NR_DIRECT + (ENTRIES_PER_PAGEPAGE/2) * (ENTRIES_PER_PAGE+1))
147 offset = index % ENTRIES_PER_PAGE; in shmem_swp_entry()
148 index /= ENTRIES_PER_PAGE; in shmem_swp_entry()
151 if (index >= ENTRIES_PER_PAGE/2) { in shmem_swp_entry()
152 index -= ENTRIES_PER_PAGE/2; in shmem_swp_entry()
153 dir += ENTRIES_PER_PAGE/2 + index/ENTRIES_PER_PAGE; in shmem_swp_entry()
154 index %= ENTRIES_PER_PAGE; in shmem_swp_entry()
274 last = *dir + (len + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE; in shmem_truncate_direct()
275 off = start % ENTRIES_PER_PAGE; in shmem_truncate_direct()
277 for (ptr = *dir + start/ENTRIES_PER_PAGE; ptr < last; ptr++, off = 0) { in shmem_truncate_direct()
283 *ptr + ENTRIES_PER_PAGE); in shmem_truncate_direct()
336 BUG_ON(len > ENTRIES_PER_PAGEPAGE*ENTRIES_PER_PAGE/2); in shmem_truncate_indirect()
340 ENTRIES_PER_PAGE/2 + baseidx/ENTRIES_PER_PAGEPAGE; in shmem_truncate_indirect()
487 idx += ENTRIES_PER_PAGE) { in shmem_unuse_inode()
492 if (offset > ENTRIES_PER_PAGE) in shmem_unuse_inode()
493 offset = ENTRIES_PER_PAGE; in shmem_unuse_inode()