diff --git a/include/linux/fs.h b/include/linux/fs.h index 3c659015d2c8d168a9c2668fa26d70943b1be299..0d9a2e201f1c6efdd894809f83376458591048b2 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3516,5 +3516,7 @@ extern void inode_nohighmem(struct inode *inode); /* mm/fadvise.c */ extern int vfs_fadvise(struct file *file, loff_t offset, loff_t len, int advice); +extern int generic_fadvise(struct file *file, loff_t offset, loff_t len, + int advice); #endif /* _LINUX_FS_H */ diff --git a/mm/fadvise.c b/mm/fadvise.c index 467bcd032037a905e991cefe9fe48922f2031036..57f36c0943f9539b43007f46c1d7367243a63e6e 100644 --- a/mm/fadvise.c +++ b/mm/fadvise.c @@ -27,7 +27,7 @@ * deactivate the pages and clear PG_Referenced. */ -static int generic_fadvise(struct file *file, loff_t offset, loff_t len, +int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice) { struct inode *inode; @@ -178,6 +178,7 @@ static int generic_fadvise(struct file *file, loff_t offset, loff_t len, } return 0; } +EXPORT_SYMBOL(generic_fadvise); int vfs_fadvise(struct file *file, loff_t offset, loff_t len, int advice) {