]> granicus.if.org Git - zfs/commitdiff
Minimal VFS additions
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Jan 2011 19:22:34 +0000 (11:22 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 28 Jan 2011 00:06:04 +0000 (16:06 -0800)
This patch simply removes the place holder vfs_t type and includes
some generic Linux VFS headers.  It also makes some minor fid_t
additions for compatibility.

include/sys/vfs.h

index b18c90928a0c9f9ad17258e0327cfe2eccf21893..cc6c3b693f5e894610acc1e6f043fd2e94f83b7d 100644 (file)
 #ifndef _SPL_ZFS_H
 #define _SPL_ZFS_H
 
-typedef struct vfs {
-       int foo;
-} vfs_t;
+#include <linux/mount.h>
+#include <linux/fs.h>
+#include <linux/dcache.h>
+#include <linux/statfs.h>
+#include <linux/xattr.h>
+#include <linux/security.h>
 
-#define MAXFIDSZ       64
+#define        MAXFIDSZ        64
 
 typedef struct fid {
        union {
@@ -41,4 +44,7 @@ typedef struct fid {
        } un;
 } fid_t;
 
+#define        fid_len         un._fid.len
+#define        fid_data        un._fid.data
+
 #endif /* SPL_ZFS_H */