diff mbox series

[LEDE-DEV] kernel: enable CONFIG_ADVISE_SYSCALLS

Message ID 20171015000719.5143-1-rosenp@gmail.com
State Accepted
Headers show
Series [LEDE-DEV] kernel: enable CONFIG_ADVISE_SYSCALLS | expand

Commit Message

Rosen Penev Oct. 15, 2017, 12:07 a.m. UTC
Without this, posix_[fm]advise does not work. This causes issues with btrfs-progs, which uses fadvise to drop caches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 target/linux/generic/config-4.9 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Florian Fainelli Oct. 15, 2017, 1:05 a.m. UTC | #1
Le 10/14/17 à 17:07, Rosen Penev a écrit :
> Without this, posix_[fm]advise does not work. This causes issues with btrfs-progs, which uses fadvise to drop caches.

What's the kernel image size difference w/ and w/o this option? Would it
make sense to expose it under config/Config-kernel.in for instance?

> 
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
> ---
>  target/linux/generic/config-4.9 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/linux/generic/config-4.9 b/target/linux/generic/config-4.9
> index 8654357dbf..570efabc7a 100644
> --- a/target/linux/generic/config-4.9
> +++ b/target/linux/generic/config-4.9
> @@ -90,7 +90,7 @@ CONFIG_32BIT=y
>  # CONFIG_ADM6996_PHY is not set
>  # CONFIG_ADM8211 is not set
>  # CONFIG_ADT7316 is not set
> -# CONFIG_ADVISE_SYSCALLS is not set
> +CONFIG_ADVISE_SYSCALLS=y
>  # CONFIG_ADXRS450 is not set
>  CONFIG_AEABI=y
>  # CONFIG_AFE4403 is not set
>
Rosen Penev Oct. 15, 2017, 10:43 p.m. UTC | #2
I don't see a change. I still get 6479872 for vmlinux.

On Sat, 2017-10-14 at 18:05 -0700, Florian Fainelli wrote:
> Le 10/14/17 à 17:07, Rosen Penev a écrit :
> > Without this, posix_[fm]advise does not work. This causes issues
> > with btrfs-progs, which uses fadvise to drop caches.
> 
> What's the kernel image size difference w/ and w/o this option? Would
> it
> make sense to expose it under config/Config-kernel.in for instance?
> 
> > 
> > Signed-off-by: Rosen Penev <rosenp@gmail.com>
> > ---
> >  target/linux/generic/config-4.9 | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/target/linux/generic/config-4.9
> > b/target/linux/generic/config-4.9
> > index 8654357dbf..570efabc7a 100644
> > --- a/target/linux/generic/config-4.9
> > +++ b/target/linux/generic/config-4.9
> > @@ -90,7 +90,7 @@ CONFIG_32BIT=y
> >  # CONFIG_ADM6996_PHY is not set
> >  # CONFIG_ADM8211 is not set
> >  # CONFIG_ADT7316 is not set
> > -# CONFIG_ADVISE_SYSCALLS is not set
> > +CONFIG_ADVISE_SYSCALLS=y
> >  # CONFIG_ADXRS450 is not set
> >  CONFIG_AEABI=y
> >  # CONFIG_AFE4403 is not set
> > 
> 
>
Jo-Philipp Wich Oct. 26, 2017, 5:39 p.m. UTC | #3
Merged into my staging tree with
http://git.lede-project.org/?p=lede/jow/staging.git;a=commitdiff;h=bc584ac5d1.

Thank you!
diff mbox series

Patch

diff --git a/target/linux/generic/config-4.9 b/target/linux/generic/config-4.9
index 8654357dbf..570efabc7a 100644
--- a/target/linux/generic/config-4.9
+++ b/target/linux/generic/config-4.9
@@ -90,7 +90,7 @@  CONFIG_32BIT=y
 # CONFIG_ADM6996_PHY is not set
 # CONFIG_ADM8211 is not set
 # CONFIG_ADT7316 is not set
-# CONFIG_ADVISE_SYSCALLS is not set
+CONFIG_ADVISE_SYSCALLS=y
 # CONFIG_ADXRS450 is not set
 CONFIG_AEABI=y
 # CONFIG_AFE4403 is not set