|
Lines 160-169
static void test_fanotify(void)
Link Here
|
| 160 |
} |
160 |
} |
| 161 |
|
161 |
|
| 162 |
/* |
162 |
/* |
| 163 |
* drop_caches should evict inode from cache and remove evictable mark |
163 |
* drop_caches should evict inode from cache and remove evictable mark. |
|
|
164 |
* We call drop_caches twice as once the dentries will just cycle |
| 165 |
* through the LRU without being reclaimed and if there are no other |
| 166 |
* objects to reclaim, the slab reclaim will just stop instead of |
| 167 |
* retrying. |
| 164 |
*/ |
168 |
*/ |
| 165 |
fsync_file(TEST_FILE); |
169 |
fsync_file(TEST_FILE); |
| 166 |
SAFE_FILE_PRINTF(DROP_CACHES_FILE, "3"); |
170 |
SAFE_FILE_PRINTF(DROP_CACHES_FILE, "3"); |
|
|
171 |
SAFE_FILE_PRINTF(DROP_CACHES_FILE, "3"); |
| 167 |
|
172 |
|
| 168 |
verify_mark_removed(TEST_FILE, "after drop_caches"); |
173 |
verify_mark_removed(TEST_FILE, "after drop_caches"); |
| 169 |
|
174 |
|
| 170 |
- |
|
|