diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-08-17 20:22:13 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-08-18 00:17:11 -0400 |
commit | 905297ad0fab4b2a2b48acfde9392f1abf4ce8fa (patch) | |
tree | 3432f3b961b4947ea6b571fda650c33573f6b8f8 /include/linux/mm.h | |
parent | c1c4d03aa6923dadc7cc31fcff37a6243b51d0b4 (diff) |
Update bcachefs sources to d863521e4078 bcachefs: BCH_IOCTL_DISK_SET_STATE_v2
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index d0fad5ab..cbcc86e6 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -23,11 +23,15 @@ struct sysinfo { __u32 mem_unit; /* Memory unit size in bytes */ }; - - static inline void si_meminfo(struct sysinfo *val) { BUG_ON(syscall(SYS_sysinfo, val)); } +extern unsigned long _totalram_pages; +static inline unsigned long totalram_pages(void) +{ + return _totalram_pages; +} + #endif /* _TOOLS_LINUX_MM_H */ |