int (* fs_qids)(struct file *file, struct inode *inode, int type,
struct list_head *list);
int (* fs_dquot)(struct lustre_dquot *dquot, int cmd);
+ lvfs_sbdev_type (* fs_journal_sbdev)(struct super_block *sb);
};
extern int fsfilt_register_ops(struct fsfilt_operations *fs_ops);
return obd->obd_fsops->fs_uuid(sb);
}
+static inline lvfs_sbdev_type fsfilt_journal_sbdev(struct obd_device *obd,
+ struct super_block *sb)
+{
+ if (obd && obd->obd_fsops && obd->obd_fsops->fs_journal_sbdev)
+ return obd->obd_fsops->fs_journal_sbdev(sb);
+ return (lvfs_sbdev_type)0;
+}
+
#define FSFILT_OP_UNLINK 1
#define FSFILT_OP_RMDIR 2
#define FSFILT_OP_RENAME 3