Files
kernel_common_drivers/include/linux/amlogic/file_cache.h
T
Jianxiong Pan ac2fc01c28 mm: add file cache statistic support. [1/1]
PD#SWPL-72350

Problem:
add a tool to list how many memory cache files used in file
cache.
console:/ # cat /proc/filecache

Solution:
porting file cache from 5.4.

Verify:
local.

Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Change-Id: I92420acab7333b75bbb5bca1075d3e401b027fb2
2022-02-22 23:03:03 -07:00

25 lines
551 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __FILE_CACHE_H__
#define __FILE_CACHE_H__
#include <asm/memory.h>
#include <asm/stacktrace.h>
#include <asm/sections.h>
#define MAX_FCT 2048
struct file_cache_trace {
unsigned int count;
unsigned int active_count;
unsigned int inactive_count;
unsigned int lock_count;
unsigned int mapcnt;
unsigned long off; /* for find out vma */
struct address_space *mapping;
struct rb_node entry;
};
#endif /* __PAGE_TRACE_H__ */