Commit 97c7990c authored by Christoph Hellwig's avatar Christoph Hellwig

cachefiles: switch to kernel_write

__kernel_write doesn't take a sb_writers references, which we need here.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
parent dcde237b
...@@ -937,7 +937,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page) ...@@ -937,7 +937,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)
} }
data = kmap(page); data = kmap(page);
ret = __kernel_write(file, data, len, &pos); ret = kernel_write(file, data, len, &pos);
kunmap(page); kunmap(page);
fput(file); fput(file);
if (ret != len) if (ret != len)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment