Searched refs:ffi (Results 1 – 2 of 2) sorted by relevance
1317 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in time_to_inject() local1319 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()
64 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in f2fs_build_fault_attr() local67 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()