Skip to contentSkip to conversation

Fix typo in rename of directories

Cluster-devel Steven Whitehouse 1 participant 1 message Jun 7, 2007 GFS2 file system

lore
Share & tools
lore
#0 lore raw

Hi,

A very simple fix that I've just pushed to the git tree,

Steve.

------------------------------------------------------------------------------
From 463d8171d29a2719d7b7b7de1766f39d28763fa5 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Thu, 7 Jun 2007 11:29:35 +0100
Subject: [PATCH] [GFS2] Fix typo in rename of directories

A typo caused us to pass a NULL pointer when renaming directories. It was accidentally introduced in: [GFS2] Clean up inode number handling

fs/gfs2/ops_inode.c +1 -1
index 9cc07f4..84051b9 100644
@@ -749,7 +749,7 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry,
 		if (error)
 			goto out_end_trans;
 
-		error = gfs2_dir_mvino(ip, &name, nip, DT_DIR);
+		error = gfs2_dir_mvino(ip, &name, ndip, DT_DIR);
 		if (error)
 			goto out_end_trans;
 	} else {
Signature · 1 line
1.5.1.2