Home
last modified time | relevance | path

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

/linux-4.19.296/fs/f2fs/
Df2fs.h1317 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in time_to_inject() local
1319 if (!ffi->inject_rate) in time_to_inject()
1322 if (!IS_FAULT_SET(ffi, type)) in time_to_inject()
1325 atomic_inc(&ffi->inject_ops); in time_to_inject()
1326 if (atomic_read(&ffi->inject_ops) >= ffi->inject_rate) { in time_to_inject()
1327 atomic_set(&ffi->inject_ops, 0); in time_to_inject()
Dsuper.c64 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in f2fs_build_fault_attr() local
67 atomic_set(&ffi->inject_ops, 0); in f2fs_build_fault_attr()
68 ffi->inject_rate = rate; in f2fs_build_fault_attr()
72 ffi->inject_type = type; in f2fs_build_fault_attr()
75 memset(ffi, 0, sizeof(struct f2fs_fault_info)); in f2fs_build_fault_attr()