mirror of
https://github.com/schoebel/mars
synced 2025-03-25 04:26:49 +00:00
infra: remove unwanted reference to min_free_kbyte
This commit is contained in:
parent
b9383da97c
commit
05a5b49aed
@ -5764,8 +5764,10 @@ static void exit_main(void)
|
|||||||
|
|
||||||
static int __init init_main(void)
|
static int __init init_main(void)
|
||||||
{
|
{
|
||||||
|
#ifdef HAS_MARS_PREPATCH
|
||||||
extern int min_free_kbytes;
|
extern int min_free_kbytes;
|
||||||
int new_limit = 4096;
|
int new_limit = 4096;
|
||||||
|
#endif
|
||||||
struct kstat dummy;
|
struct kstat dummy;
|
||||||
int status = mars_stat("/mars/uuid", &dummy, true);
|
int status = mars_stat("/mars/uuid", &dummy, true);
|
||||||
|
|
||||||
@ -5774,9 +5776,11 @@ static int __init init_main(void)
|
|||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAS_MARS_PREPATCH
|
||||||
// bump the min_free limit
|
// bump the min_free limit
|
||||||
if (min_free_kbytes < new_limit)
|
if (min_free_kbytes < new_limit)
|
||||||
min_free_kbytes = new_limit;
|
min_free_kbytes = new_limit;
|
||||||
|
#endif
|
||||||
|
|
||||||
printk(KERN_INFO "loading MARS, BUILDTAG=%s BUILDHOST=%s BUILDDATE=%s\n", BUILDTAG, BUILDHOST, BUILDDATE);
|
printk(KERN_INFO "loading MARS, BUILDTAG=%s BUILDHOST=%s BUILDDATE=%s\n", BUILDTAG, BUILDHOST, BUILDDATE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user