summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2019-08-29 09:04:11 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 15:12:34 +0200
commitfbe7950a17c7786130d1e2bb0fa91a5256f7e186 (patch)
tree1f41366cb8a50debfd250fddc560fb3fa62dc5b0 /include/linux/fs.h
parent12bfec2132f8b1f8d474a7b4a62239fcd0e190d0 (diff)
downloadlinux-stable-fbe7950a17c7786130d1e2bb0fa91a5256f7e186.tar.gz
linux-stable-fbe7950a17c7786130d1e2bb0fa91a5256f7e186.tar.bz2
linux-stable-fbe7950a17c7786130d1e2bb0fa91a5256f7e186.zip
fs: Export generic_fadvise()
commit cf1ea0592dbf109e7e7935b7d5b1a47a1ba04174 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 997a530ff4e9..bc1b40fb0db7 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -3531,6 +3531,8 @@ 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);
#if defined(CONFIG_IO_URING)
extern struct sock *io_uring_get_socket(struct file *file);