Home
last modified time | relevance | path

Searched refs:entry_space (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/md/
Ddm-cache-policy-smq.c58 struct entry_space { struct
63 static int space_init(struct entry_space *es, unsigned nr_entries) in space_init() argument
78 static void space_exit(struct entry_space *es) in space_exit()
83 static struct entry *__get_entry(struct entry_space *es, unsigned block) in __get_entry()
93 static unsigned to_index(struct entry_space *es, struct entry *e) in to_index()
99 static struct entry *to_entry(struct entry_space *es, unsigned block) in to_entry()
120 static struct entry *l_head(struct entry_space *es, struct ilist *l) in l_head()
125 static struct entry *l_tail(struct entry_space *es, struct ilist *l) in l_tail()
130 static struct entry *l_next(struct entry_space *es, struct entry *e) in l_next()
135 static struct entry *l_prev(struct entry_space *es, struct entry *e) in l_prev()
[all …]
/linux-4.4.14/fs/ext4/
Dnamei.c557 unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(1) - in dx_root_limit() local
561 entry_space -= sizeof(struct dx_tail); in dx_root_limit()
562 return entry_space / sizeof(struct dx_entry); in dx_root_limit()
567 unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(0); in dx_node_limit() local
570 entry_space -= sizeof(struct dx_tail); in dx_node_limit()
571 return entry_space / sizeof(struct dx_entry); in dx_node_limit()