aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2018-08-27 08:56:02 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2018-08-30 11:08:35 -0400
commit45cd0faae3715e305bc46e23b34c5ed4d185ceb8 (patch)
treebe01e26c488ebd3cb7943136a0805563e311d117 /Documentation/filesystems
parent17ef445f9befdc5c9adac270b18240ad24ee50ec (diff)
vfs: add the fadvise() file operation
This is going to be used by overlayfs and possibly useful for other filesystems. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r--Documentation/filesystems/vfs.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt
index ec2142c8dbd3..a6c6a8af48a2 100644
--- a/Documentation/filesystems/vfs.txt
+++ b/Documentation/filesystems/vfs.txt
@@ -885,6 +885,7 @@ struct file_operations {
885 ssize_t (*copy_file_range)(struct file *, loff_t, struct file *, loff_t, size_t, unsigned int); 885 ssize_t (*copy_file_range)(struct file *, loff_t, struct file *, loff_t, size_t, unsigned int);
886 int (*clone_file_range)(struct file *, loff_t, struct file *, loff_t, u64); 886 int (*clone_file_range)(struct file *, loff_t, struct file *, loff_t, u64);
887 int (*dedupe_file_range)(struct file *, loff_t, struct file *, loff_t, u64); 887 int (*dedupe_file_range)(struct file *, loff_t, struct file *, loff_t, u64);
888 int (*fadvise)(struct file *, loff_t, loff_t, int);
888}; 889};
889 890
890Again, all methods are called without any locks being held, unless 891Again, all methods are called without any locks being held, unless
@@ -965,6 +966,8 @@ otherwise noted.
965 dedupe_file_range: called by the ioctl(2) system call for FIDEDUPERANGE 966 dedupe_file_range: called by the ioctl(2) system call for FIDEDUPERANGE
966 command. 967 command.
967 968
969 fadvise: possibly called by the fadvise64() system call.
970
968Note that the file operations are implemented by the specific 971Note that the file operations are implemented by the specific
969filesystem in which the inode resides. When opening a device node 972filesystem in which the inode resides. When opening a device node
970(character or block special) most filesystems will call special 973(character or block special) most filesystems will call special