nfs: Implement cache I/O by accessing the cache directly
[linux-2.6-block.git] / fs / fscache / io.c
index bed7628a5a9dabc6f06262ea5e0f99e4dcbb4d2c..7a769ea5772039f416280779a1c1ff082e00ec64 100644 (file)
@@ -150,6 +150,14 @@ int __fscache_begin_read_operation(struct netfs_cache_resources *cres,
 }
 EXPORT_SYMBOL(__fscache_begin_read_operation);
 
+int __fscache_begin_write_operation(struct netfs_cache_resources *cres,
+                                   struct fscache_cookie *cookie)
+{
+       return fscache_begin_operation(cres, cookie, FSCACHE_WANT_PARAMS,
+                                      fscache_access_io_write);
+}
+EXPORT_SYMBOL(__fscache_begin_write_operation);
+
 /**
  * fscache_set_page_dirty - Mark page dirty and pin a cache object for writeback
  * @page: The page being dirtied