CDEBUG(D_INFO, "trans start %p\n", fsfilt->fs_start);
SMFS_TRANS_OP(inode, op);
-
+
/* There are some problem here. fs_start in fsfilt is used by lustre
* the journal blocks of write rec are not counted in FIXME later */
if (fsfilt->fs_start)
{
struct fsfilt_operations *fsfilt = S2SMI(inode->i_sb)->sm_fsfilt;
+ if (!handle)
+ return;
+
CDEBUG(D_INFO, "trans commit %p\n", fsfilt->fs_commit);
if (fsfilt->fs_commit)
- fsfilt->fs_commit(inode, handle, force_sync);
+ fsfilt->fs_commit(inode->i_sb, inode, handle, force_sync);
}
/*smfs_path is gotten from intermezzo*/
return rc;
}
-static int smfs_post_rec_create(struct inode *dir,
- struct dentry *dentry,
- void *data1,
- void *data2)
+int smfs_post_rec_create(struct inode *dir, struct dentry *dentry,
+ void *data1, void *data2)
{
struct smfs_super_info *sinfo;
char *buffer = NULL, *pbuf;