fs: Allow a NULL pos pointer to __kernel_write
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 3 Oct 2020 02:55:22 +0000 (03:55 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 15 Oct 2020 18:20:41 +0000 (14:20 -0400)
commit4c207ef48269377236cd38979197c5e1631c8c16
tree29668769460a5f355b8f609bcae2cbe92758224a
parent5ae4998b5d6fc703a16c9fa935fb7d335843bf22
fs: Allow a NULL pos pointer to __kernel_write

Linus prefers that callers be allowed to pass in a NULL pointer for ppos
like new_sync_write().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/read_write.c