diff options
author | Jan Kara <jack@suse.cz> | 2019-08-29 19:04:11 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-08-31 08:43:58 +0300 |
commit | cf1ea0592dbf109e7e7935b7d5b1a47a1ba04174 (patch) | |
tree | ad909fdd86ed745b9041e2eab102fe219a218885 /mm/fadvise.c | |
parent | 692fe62433d4ca47605b39f7c416efd6679ba694 (diff) | |
download | linux-cf1ea0592dbf109e7e7935b7d5b1a47a1ba04174.tar.xz |
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>
Diffstat (limited to 'mm/fadvise.c')
-rw-r--r-- | mm/fadvise.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/fadvise.c b/mm/fadvise.c index 467bcd032037..4f17c83db575 100644 --- a/mm/fadvise.c +++ b/mm/fadvise.c @@ -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) { |