]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
fs: update documentation to mention __poll_t and match the code
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Jan 2018 21:50:45 +0000 (22:50 +0100)
committerChristoph Hellwig <hch@lst.de>
Sat, 26 May 2018 07:16:44 +0000 (09:16 +0200)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/filesystems/Locking
Documentation/filesystems/vfs.txt

index 75d2d57e2c4421122434aa855444e8a344c38f21..220bba28f72becf7d79eb6227bd8962f4b0e5dee 100644 (file)
@@ -439,7 +439,7 @@ prototypes:
        ssize_t (*read_iter) (struct kiocb *, struct iov_iter *);
        ssize_t (*write_iter) (struct kiocb *, struct iov_iter *);
        int (*iterate) (struct file *, struct dir_context *);
-       unsigned int (*poll) (struct file *, struct poll_table_struct *);
+       __poll_t (*poll) (struct file *, struct poll_table_struct *);
        long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
        long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
        int (*mmap) (struct file *, struct vm_area_struct *);
index 5fd325df59e2233df60cbf6da6c92230aa0c26ef..f608180ad59d71ab2bcc2d2d818699bfaaee1470 100644 (file)
@@ -856,7 +856,7 @@ struct file_operations {
        ssize_t (*read_iter) (struct kiocb *, struct iov_iter *);
        ssize_t (*write_iter) (struct kiocb *, struct iov_iter *);
        int (*iterate) (struct file *, struct dir_context *);
-       unsigned int (*poll) (struct file *, struct poll_table_struct *);
+       __poll_t (*poll) (struct file *, struct poll_table_struct *);
        long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
        long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
        int (*mmap) (struct file *, struct vm_area_struct *);