Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Linux kernel compatability enhancements (through 3.19)
[palacios.git] / linux_module / iface-file.c
index 6f69c3d..880c4d9 100644 (file)
@@ -21,7 +21,7 @@ static struct list_head global_files;
 #define isprint(a) ((a >= ' ') && (a <= '~'))
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0)
-#define PAL_VFS_GETATTR(path, kstat) vfs_getattr(path.mnt, path.dentry, kstat)
+#define PAL_VFS_GETATTR(path, kstat) vfs_getattr((path)->mnt, (path)->dentry, kstat)
 #else
 #define PAL_VFS_GETATTR(path, kstat) vfs_getattr(path, kstat)
 #endif
@@ -282,7 +282,7 @@ static unsigned long long palacios_file_size(void * file_ptr) {
     struct kstat s;
     int ret;
     
-    ret = PAL_VFS_GETATTR(filp->f_path, &s);
+    ret = PAL_VFS_GETATTR(&(filp->f_path), &s);
 
     if (ret != 0) {
        ERROR("Failed to fstat file\n");