mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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:
parent
dcde237b9b
commit
97c7990c4b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user