return NULL;
cache_inode = I2CI(fso->fso_dentry->d_inode);
- cache_dentry = pre_smfs_dentry(NULL, cache_inode, fso->fso_dentry,
- NULL);
+ cache_dentry = pre_smfs_dentry(NULL, cache_inode, fso->fso_dentry);
if (!cache_dentry)
GOTO(exit, rc = ERR_PTR(-ENOMEM));
cache_inode = I2CI(dentry->d_inode);
- cache_dentry = pre_smfs_dentry(NULL, cache_inode, dentry, NULL);
+ cache_dentry = pre_smfs_dentry(NULL, cache_inode, dentry);
if (!cache_dentry)
GOTO(exit, rc = -ENOMEM);
} else {
rc = cache_fsfilt->fs_iocontrol(cache_inode, NULL, cmd, arg);
}
-
+#if 0
/* FIXME-UMKA: Should this be in duplicate_inode()? */
if (rc == 0 && cmd == EXT3_IOC_SETFLAGS)
inode->i_flags = cache_inode->i_flags;
-
+#endif
post_smfs_inode(inode, cache_inode);
RETURN(rc);
RETURN(rc);
}
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
-static int fsfilt_smfs_send_bio(struct inode *inode, struct bio *bio)
-#else
-static int fsfilt_smfs_send_bio(struct inode *inode, struct kiobuf *bio)
-#endif
+static int fsfilt_smfs_send_bio(int rw, struct inode *inode, struct kiobuf *bio)
{
struct inode *cache_inode;
struct fsfilt_operations *cache_fsfilt;
if (!cache_fsfilt->fs_send_bio)
RETURN(-ENOSYS);
- return cache_fsfilt->fs_send_bio(cache_inode, bio);
+ return cache_fsfilt->fs_send_bio(rw, cache_inode, bio);
}
static struct page *
for (i = 0; i < num_extents; i++) {
size_t count = w_ext->w_count;
loff_t off = w_ext->w_pos;
- rc = smfs_cow_write(de->d_inode, de, &count, &off);
+ rc = smfs_cow_write_pre(de->d_inode, de, &count, &off);
if (rc)
RETURN(rc);
w_ext ++;