+ return obd->obd_fsops->fs_write_record(file, buf, size, offs,
+ force_sync);
+}
+
+static inline int
+llog_fsfilt_write_record(struct llog_ctxt *ctxt, struct file *file,
+ void *buf, loff_t size, loff_t *offs,
+ int force_sync)
+{
+ return ctxt->loc_fsops->fs_write_record(file, buf, size, offs,
+ force_sync);
+}
+
+static inline int
+fsfilt_set_kml_flags(struct obd_device *obd, struct inode *inode)
+{
+ if (obd->obd_fsops->fs_set_kml_flags)
+ return obd->obd_fsops->fs_set_kml_flags(inode);
+ return 0;
+}
+
+static inline int
+fsfilt_clear_kml_flags(struct obd_device *obd, struct inode *inode)
+{
+ if (obd->obd_fsops->fs_clear_kml_flags)
+ return obd->obd_fsops->fs_clear_kml_flags(inode);
+ return 0;
+}
+static inline int
+fsfilt_precreate_rec(struct obd_device *obd, struct dentry *dentry,
+ int *num, struct obdo *oa)
+{
+ if (obd->obd_fsops->fs_precreate_rec)
+ return obd->obd_fsops->fs_precreate_rec(dentry, num, oa);
+ return 0;
+}
+
+static inline int
+fsfilt_post_setup(struct obd_device *obd)
+{
+ if (obd->obd_fsops->fs_post_setup)
+ return obd->obd_fsops->fs_post_setup(obd,
+ obd->obd_lvfs_ctxt.pwdmnt);
+ return 0;
+}
+
+static inline int
+fsfilt_post_cleanup(struct obd_device *obd)
+{
+ if (obd->obd_fsops->fs_post_cleanup)
+ return obd->obd_fsops->fs_post_cleanup(obd,
+ obd->obd_lvfs_ctxt.pwdmnt);
+ return 0;
+}
+
+static inline int
+fsfilt_get_ino_write_extents(struct obd_device *obd,
+ struct super_block *sb,
+ int ino, char **buf, int *size)
+{
+ if (obd->obd_fsops->fs_get_ino_write_extents)
+ return obd->obd_fsops->fs_get_ino_write_extents(sb, ino,
+ buf, size);
+ return 0;
+}
+
+static inline int
+fsfilt_free_write_extents(struct obd_device *obd,
+ struct super_block *sb,
+ int ino, char *buf, int size)
+{
+ if (obd->obd_fsops->fs_free_write_extents)
+ return obd->obd_fsops->fs_free_write_extents(sb, ino,
+ buf, size);