diff options
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 9a0cdde14a08..0b578598c6ac 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -785,7 +785,7 @@ static const struct super_operations fuse_super_operations = { | |||
785 | static void sanitize_global_limit(unsigned *limit) | 785 | static void sanitize_global_limit(unsigned *limit) |
786 | { | 786 | { |
787 | if (*limit == 0) | 787 | if (*limit == 0) |
788 | *limit = ((num_physpages << PAGE_SHIFT) >> 13) / | 788 | *limit = ((totalram_pages << PAGE_SHIFT) >> 13) / |
789 | sizeof(struct fuse_req); | 789 | sizeof(struct fuse_req); |
790 | 790 | ||
791 | if (*limit >= 1 << 16) | 791 | if (*limit >= 1 << 16) |