Skip to content
Snippets Groups Projects
Commit def4ec88 authored by Wang Di's avatar Wang Di
Browse files

minor fix for snap_inode_init

parent 5eab22ae
No related branches found
No related tags found
No related merge requests found
......@@ -173,13 +173,14 @@ int smfs_cow_cleanup(struct super_block *sb)
* should be recorgnized here*/
int smfs_init_snap_inode_info(struct inode *inode, int flags)
{
struct snap_inode_info *sni_info = I2SNAPI(inode);
struct fsfilt_operations *snapops = I2SNAPOPS(inode);
int vallen, rc = 0;
ENTRY;
if (SMFS_DO_COW(S2SMI(inode->i_sb)) &&
(flags & SM_DO_COW)) {
struct snap_inode_info *sni_info = I2SNAPI(inode);
struct fsfilt_operations *snapops = I2SNAPOPS(inode);
sni_info->sn_flags = flags;
vallen = sizeof(sni_info->sn_gen);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment