Index: /trunk/src/VBox/Additions/linux/sharedfolders/regops.c
===================================================================
--- /trunk/src/VBox/Additions/linux/sharedfolders/regops.c	(revision 39703)
+++ /trunk/src/VBox/Additions/linux/sharedfolders/regops.c	(revision 39704)
@@ -430,7 +430,9 @@
     BUG_ON(!sf_r);
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 6)
     /* See the smbfs source (file.c). mmap in particular can cause data to be
      * written to the file after it is closed, which we can't cope with. */
     filemap_write_and_wait(inode->i_mapping);
+#endif
     rc = vboxCallClose(&client_handle, &sf_g->map, sf_r->handle);
     if (RT_FAILURE(rc))
