void *(* fs_start)(struct inode *inode, int op);
void *(* fs_brw_start)(int objcount, struct fsfilt_objinfo *fso,
int niocount, struct niobuf_remote *nb);
- int (* fs_commit)(struct inode *inode, void *handle);
+ int (* fs_commit)(struct inode *inode, void *handle,int force_sync);
int (* fs_setattr)(struct dentry *dentry, void *handle,
struct iattr *iattr);
int (* fs_set_md)(struct inode *inode, void *handle, void *md,
}
static inline int fsfilt_commit(struct obd_device *obd, struct inode *inode,
- void *handle)
+ void *handle, int force_sync)
{
CDEBUG(D_HA, "committing handle %p\n", handle);
- return obd->obd_fsops->fs_commit(inode, handle);
+ return obd->obd_fsops->fs_commit(inode, handle, force_sync);
}
static inline int fsfilt_setattr(struct obd_device *obd, struct dentry *dentry,
RETURN(handle);
}
-static int fsfilt_ext3_commit(struct inode *inode, void *h /*, force_sync */)
+static int fsfilt_ext3_commit(struct inode *inode, void *h, int force_sync)
{
int rc;
handle_t *handle = h;
-#if 0
if (force_sync)
handle->h_sync = 1; /* recovery likes this */
-#endif
lock_kernel();
rc = journal_stop(handle);
return (void *)0xf00f00be;
}
-static int fsfilt_reiserfs_commit(struct inode *inode, void *handle)
+static int fsfilt_reiserfs_commit(struct inode *inode, void *handle,
+ int force_sync)
{
if (handle != (void *)0xf00f00be) {
CERROR("bad handle %p", handle);