Searched refs:ffi (Results 1 – 2 of 2) sorted by relevance
1805 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in time_to_inject() local1807 if (!ffi->inject_rate) in time_to_inject()1810 if (!IS_FAULT_SET(ffi, type)) in time_to_inject()1813 atomic_inc(&ffi->inject_ops); in time_to_inject()1814 if (atomic_read(&ffi->inject_ops) >= ffi->inject_rate) { in time_to_inject()1815 atomic_set(&ffi->inject_ops, 0); in time_to_inject()
66 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in f2fs_build_fault_attr() local69 atomic_set(&ffi->inject_ops, 0); in f2fs_build_fault_attr()70 ffi->inject_rate = rate; in f2fs_build_fault_attr()74 ffi->inject_type = type; in f2fs_build_fault_attr()77 memset(ffi, 0, sizeof(struct f2fs_fault_info)); in f2fs_build_fault_attr()