]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited4996e2782b76307f94d255b62cc55840383aad
tree29668769460a5f355b8f609bcae2cbe92758224a
parent0c4fd4d137003ecf938a737daeb87433fed94659
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