Skip to contentSkip to conversation

+ documentation-filesystems-vfstxt-update-file_operations-documentation.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jan 30, 2014 Documentation

lore
Share & tools
lore
#0 lore raw

Subject: + documentation-filesystems-vfstxt-update-file_operations-documentation.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Thu, 30 Jan 2014 12:28:01 -0800

The patch titled
Subject: Documentation/filesystems/vfs.txt: update file_operations documentation
has been added to the -mm tree. Its filename is
documentation-filesystems-vfstxt-update-file_operations-documentation.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/documentation-filesystems-vfstxt-update-file_operations-documentation.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/documentation-filesystems-vfstxt-update-file_operations-documentation.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Richard Yao <[email protected]>
Subject: Documentation/filesystems/vfs.txt: update file_operations documentation

->readv, ->writev and ->sendfile have been removed while ->show_fdinfo has been added. The documentation should reflect this.

---

 Documentation/filesystems/vfs.txt |   12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
Documentation/filesystems/vfs.txt renamed from Documentation/filesystems/vfs.txt~documentation-filesystems-vfstxt-update-file_operations-documentation +2 -9
diff -puN Documentation/filesystems/vfs.txt~documentation-filesystems-vfstxt-update-file_operations-documentation Documentation/filesystems/vfs.txt
@@ -782,7 +782,7 @@ struct file_operations
 ----------------------
 
 This describes how the VFS can manipulate an open file. As of kernel
-3.5, the following members are defined:
+3.12, the following members are defined:
 
 struct file_operations {
 	struct module *owner;
@@ -803,9 +803,6 @@ struct file_operations {
 	int (*aio_fsync) (struct kiocb *, int datasync);
 	int (*fasync) (int, struct file *, int);
 	int (*lock) (struct file *, int, struct file_lock *);
-	ssize_t (*readv) (struct file *, const struct iovec *, unsigned long, loff_t *);
-	ssize_t (*writev) (struct file *, const struct iovec *, unsigned long, loff_t *);
-	ssize_t (*sendfile) (struct file *, loff_t *, size_t, read_actor_t, void *);
 	ssize_t (*sendpage) (struct file *, struct page *, int, size_t, loff_t *, int);
 	unsigned long (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long);
 	int (*check_flags)(int);
@@ -814,6 +811,7 @@ struct file_operations {
 	ssize_t (*splice_read)(struct file *, struct pipe_inode_info *, size_t, unsigned int);
 	int (*setlease)(struct file *, long arg, struct file_lock **);
 	long (*fallocate)(struct file *, int mode, loff_t offset, loff_t len);
+	int (*show_fdinfo)(struct seq_file *m, struct file *f);
 };
 
 Again, all methods are called without any locks being held, unless
@@ -864,12 +862,6 @@ otherwise noted.
   lock: called by the fcntl(2) system call for F_GETLK, F_SETLK, and F_SETLKW
   	commands
 
-  readv: called by the readv(2) system call
-
-  writev: called by the writev(2) system call
-
-  sendfile: called by the sendfile(2) system call