]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
cachefiles: switch to kernel_write
authorChristoph Hellwig <hch@lst.de>
Wed, 13 May 2020 06:42:36 +0000 (08:42 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 8 Jul 2020 06:27:56 +0000 (08:27 +0200)
__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>
fs/cachefiles/rdwr.c

index e7726f5f1241c23a92c1e486045478c274ba9c6c..3080cda9e82457c40d50c0fe3afc1c9aac8fa2e4 100644 (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)