From: phil Date: Thu, 25 Sep 2003 05:47:08 +0000 (+0000) Subject: re-committing to b_devel: X-Git-Tag: v1_7_100~1^368~53 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=71ff31ea2bbbf591a605ecf371fe6f6b9f57991e;p=fs%2Flustre-release.git re-committing to b_devel: 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. --- diff --git a/lustre/include/linux/lustre_fsfilt.h b/lustre/include/linux/lustre_fsfilt.h index bb191b5..194e882 100644 --- a/lustre/include/linux/lustre_fsfilt.h +++ b/lustre/include/linux/lustre_fsfilt.h @@ -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