Lines Matching refs:i
53 int i; in storage_init() local
66 for (i = 0; i < MAX_CALLERS; i++) { in storage_init()
67 rmtfds[i].id = i; in storage_init()
68 rmtfds[i].fd = -1; in storage_init()
69 rmtfds[i].shadow_buf = NULL; in storage_init()
85 int i; in storage_open() local
97 for (i = 0; i < MAX_CALLERS; i++) { in storage_open()
98 if ((rmtfds[i].fd != -1 || rmtfds[i].shadow_buf) && in storage_open()
99 rmtfds[i].node == node && in storage_open()
100 rmtfds[i].partition == part) in storage_open()
101 return &rmtfds[i]; in storage_open()
104 for (i = 0; i < MAX_CALLERS; i++) { in storage_open()
105 if (rmtfds[i].fd == -1 && !rmtfds[i].shadow_buf) { in storage_open()
106 rmtfd = &rmtfds[i]; in storage_open()
189 int i; in storage_exit() local
191 for (i = 0; i < MAX_CALLERS; i++) { in storage_exit()
192 if (rmtfds[i].fd >= 0) in storage_exit()
193 close(rmtfds[i].fd); in storage_exit()