fs: Export generic_fadvise()

Filesystems will need to call this function from their fadvise handlers.

CC: stable@vger.kernel.org
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
Jan Kara
2019-08-29 09:04:11 -07:00
committed by Darrick J. Wong
parent 692fe62433
commit cf1ea0592d
2 changed files with 4 additions and 2 deletions

View File

@@ -27,8 +27,7 @@
* deactivate the pages and clear PG_Referenced.
*/
static int generic_fadvise(struct file *file, loff_t offset, loff_t len,
int advice)
int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice)
{
struct inode *inode;
struct address_space *mapping;
@@ -178,6 +177,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)
{