cachefiles: switch to kernel_write

__kernel_write doesn't take a sb_writers references, which we need here.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
This commit is contained in:
Christoph Hellwig 2020-05-13 08:42:36 +02:00
parent dcde237b9b
commit 97c7990c4b

View File

@ -937,7 +937,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)
}
data = kmap(page);
ret = __kernel_write(file, data, len, &pos);
ret = kernel_write(file, data, len, &pos);
kunmap(page);
fput(file);
if (ret != len)