VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Arun KS <arunks@codeaurora.org> 2018-12-28 00:34:29 -0800 committer: Linus Torvalds <torvalds@linux-foundation.org> 2018-12-28 12:11:47 -0800 commit: ca79b0c211af63fa3276f0e3fd7dd9ada2439839 parent: 9705bea5f833f4fc21d5bef5fce7348427f76ea4
Commit Summary:
mm: convert totalram_pages and totalhigh_pages variables to atomic
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/file_table.c b/fs/file_table.c
index b6e9587f05c7..5679e7fcb6b0 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -380,7 +380,7 @@ void __init files_init(void)
 void __init files_maxfiles_init(void)
 {
 	unsigned long n;
-	unsigned long nr_pages = totalram_pages;
+	unsigned long nr_pages = totalram_pages();
 	unsigned long memreserve = (nr_pages - nr_free_pages()) * 3/2;
 
 	memreserve = min(memreserve, nr_pages - 1);