Whamcloud - gitweb
re-committing to b_devel:
authorphil <phil>
Thu, 25 Sep 2003 05:47:08 +0000 (05:47 +0000)
committerphil <phil>
Thu, 25 Sep 2003 05:47:08 +0000 (05:47 +0000)
b=1967
r=phil
Alex's patch, introducing the first half of pdirops. This enables it
for the back-end ext3 fs at runtime (if built against a
pdirops-enabled kernel), but doesn't yet fully integrate hashed
locking throughout.

lustre/include/linux/lustre_fsfilt.h

index bb191b5..194e882 100644 (file)
@@ -64,6 +64,7 @@ struct fsfilt_operations {
         int     (* fs_write_record)(struct file *, void *, int size, loff_t *,
                                     int force_sync);
         int     (* fs_read_record)(struct file *, void *, int size, loff_t *);
+        int     (* fs_setup)(struct super_block *sb);
 };
 
 extern int fsfilt_register_ops(struct fsfilt_operations *fs_ops);
@@ -219,6 +220,13 @@ static inline int fsfilt_write_record(struct obd_device *obd, struct file *file,
         return obd->obd_fsops->fs_write_record(file, buf, size,offs,force_sync);
 }
 
+static inline int fsfilt_setup(struct obd_device *obd, struct super_block *fs)
+{
+        if (obd->obd_fsops->fs_setup)
+                return obd->obd_fsops->fs_setup(fs);
+        return 0;
+}
+
 #endif /* __KERNEL__ */
 
 #endif