X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fsmfs%2Fsmfs_cow.c;fp=lustre%2Fsmfs%2Fsmfs_cow.c;h=9fe77a6012c6a4254201f289e55b5587315c1d76;hb=7d6e21d13707837e24b7fc6a38209d1a911b4316;hp=425eb0eb8e244961267162af445bd2cb89003123;hpb=71b521c3a253365e68a819c21f448b868f3aed66;p=fs%2Flustre-release.git diff --git a/lustre/smfs/smfs_cow.c b/lustre/smfs/smfs_cow.c index 425eb0e..9fe77a6 100644 --- a/lustre/smfs/smfs_cow.c +++ b/lustre/smfs/smfs_cow.c @@ -642,12 +642,11 @@ static struct dentry *smfs_find_snap_root(struct super_block *sb, { struct dentry *dentry = NULL; struct nameidata nd; - int error; ENTRY; #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) if (path_init(path_name, LOOKUP_FOLLOW, &nd)) { - error = path_walk(path_name, &nd); + int error = path_walk(path_name, &nd); if (error) { path_release(&nd); RETURN(NULL); @@ -658,12 +657,12 @@ static struct dentry *smfs_find_snap_root(struct super_block *sb, #else if (path_lookup(path_name, LOOKUP_FOLLOW, &nd)) RETURN(NULL); - #endif dentry = dget(nd.dentry); path_release(&nd); RETURN(dentry); } + static int snap_add_item(struct smfs_super_info *smb, struct snap_info *snap_info, char *name)