31#include "linux/seq_file.h"
38#define BCACHE_PROC_ROOT "fs"
39#define BCACHE_PROC_NAME "bcache_info"
41#define BCACHE_STATS_START(start) UINT64 (start) = LOS_CurrNanosec()
42#define BCACHE_STATS_READ_END(bc, sectors, start) UpdateReadStats(bc, sectors, start)
43#define BCACHE_STATS_WRITE_END(bc, sectors, start) UpdateWriteStats(bc, sectors, start)
45#ifdef LOSCFG_FS_FAT_CACHE_PROC
47struct BcacheInitInfo {
48 const struct inode *dev;
STATIC INLINE VOID UpdateReadStats(const OsBcache *bc, UINT64 sectorCount, UINT64 startTime)
Definition bcache_proc.h:77
STATIC INLINE UINT32 BcacheProcInit(const struct inode *devNode, OsBcache *bcache)
Definition bcache_proc.h:71
STATIC INLINE VOID BcacheProcDeinit(const OsBcache *bcache)
Definition bcache_proc.h:76
STATIC INLINE VOID UpdateWriteStats(const OsBcache *bc, UINT64 sectorCount, UINT64 startTime)
Definition bcache_proc.h:78
#define STATIC
Definition common_def.h:57
#define INLINE
Definition common_def.h:65
unsigned long long UINT64
Definition los_typedef.h:72
volatile INT64 Atomic64
Definition los_typedef.h:86
#define VOID
Definition los_typedef.h:88
unsigned int UINT32
Definition los_typedef.h:52
size_t BOOL
Definition los_typedef.h:83