memset(&result, 0, sizeof(result));
char buf[NFS_MAXSIZE];
+ bluesky_flushd_invoke_conditional(fs);
+
BlueSkyInode *inode = lookup_fh(req, &argp->file);
if (inode == NULL) {
result.status = NFS3ERR_STALE;
struct wcc_data wcc;
memset(&wcc, 0, sizeof(wcc));
+ bluesky_flushd_invoke_conditional(fs);
+
BlueSkyInode *inode = lookup_fh(req, &argp->file);
if (inode == NULL) {
result.status = NFS3ERR_STALE;
return;
}
+#if 0
/* FIXME: Hack to throttle writes when there is too much dirty data still
* to be written out. */
while (g_atomic_int_get(&fs->cache_dirty) > 4096
delay.tv_nsec = 0;
nanosleep(&delay, NULL);
}
+#endif
g_mutex_lock(inode->lock);