Skip to content

Commit

Permalink
cachefiles: switch to kernel_write
Browse files Browse the repository at this point in the history
__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>
  • Loading branch information
Christoph Hellwig committed Jul 8, 2020
1 parent dcde237 commit 97c7990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cachefiles/rdwr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 97c7990

Please sign in to comment.