From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Thu, 10 Dec 2015 16:10:18 +0100 Subject: [PATCH] overlayfs: include linux/pagemap.h for PAGE_CACHE_SIZE Message-ID: <7380785.3TF39KbbER@wuerfel> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org The overlayfs has started enforcing a maximum file size, but is missing the header file that defines the PAGE_CACHE_SIZE constant in some configurations. fs/overlayfs/super.c: In function 'ovl_fill_super': fs/overlayfs/super.c:939:29: error: 'PAGE_CACHE_SIZE' undeclared (first use in this function) Signed-off-by: Arnd Bergmann Fixes: 7b1746cac878 ("ovl: setattr: check permissions before copy-up") Cc: --- The patch that introduced this was marked for stable, so I'm marking this the same way. diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index ea94e50a3473..a4cbdf9824c7 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -9,6 +9,7 @@ #include #include +#include #include #include #include