Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-9859 libcfs: open code cfs_trace_max_debug_mb() into cfs_trace_set_debug_mb()
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
linux-tracefile.c
diff --git
a/libcfs/libcfs/linux-tracefile.c
b/libcfs/libcfs/linux-tracefile.c
index
5e39fc9
..
5e6b18b
100644
(file)
--- a/
libcfs/libcfs/linux-tracefile.c
+++ b/
libcfs/libcfs/linux-tracefile.c
@@
-259,10
+259,3
@@
void cfs_print_to_console(struct ptldebug_header *hdr, int mask,
if (mask & D_TTY)
cfs_tty_write_message(prefix, mask, buf);
}
-
-int cfs_trace_max_debug_mb(void)
-{
- int total_mb = (cfs_totalram_pages() >> (20 - PAGE_SHIFT));
-
- return max(512, (total_mb * 80) / 100);
-}