+2008-02-13 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Add missing bdi_init() and bdi_destroy() calls for 2.6.24
+ kernel. Lack of bdi_init() could cause write to hang. Report
+ forwarded by Szakacsits Szabolcs from the NTFS-3G forum.
+
2008-02-03 Csaba Henk <csaba.henk@creo.hu>
* lib/mount_bsd.c:
fc = kzalloc(sizeof(*fc), GFP_KERNEL);
if (fc) {
+#ifdef KERNEL_2_6_24_PLUS
+ int err = bdi_init(&fc->bdi);
+ if (err) {
+ kfree(fc);
+ return NULL;
+ }
+#endif
spin_lock_init(&fc->lock);
mutex_init(&fc->inst_mutex);
atomic_set(&fc->count, 1);
if (fc->destroy_req)
fuse_request_free(fc->destroy_req);
mutex_destroy(&fc->inst_mutex);
+#ifdef KERNEL_2_6_24_PLUS
+ bdi_destroy(&fc->bdi);
+#endif
kfree(fc);
}
}