mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mm: use totalram_pages instead of num_physpages at runtime
The global variable num_physpages is scheduled to be removed, so use totalram_pages instead of num_physpages at runtime. Signed-off-by: Jiang Liu <[email protected]> Cc: Miklos Szeredi <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Alexey Kuznetsov <[email protected]> Cc: James Morris <[email protected]> Cc: Hideaki YOSHIFUJI <[email protected]> Cc: Patrick McHardy <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7ee3d4e8cd
commit
0ed5fd1385
3 changed files with 4 additions and 4 deletions
|
|
@ -785,7 +785,7 @@ static const struct super_operations fuse_super_operations = {
|
|||
static void sanitize_global_limit(unsigned *limit)
|
||||
{
|
||||
if (*limit == 0)
|
||||
*limit = ((num_physpages << PAGE_SHIFT) >> 13) /
|
||||
*limit = ((totalram_pages << PAGE_SHIFT) >> 13) /
|
||||
sizeof(struct fuse_req);
|
||||
|
||||
if (*limit >= 1 << 16)
|
||||
|
|
|
|||
Loading…
Reference in a new issue