ocfs2/trivial: Remove unused variable in ocfs2_rename.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Saturday, May 2, 2009 - 5:00 pm

Gitweb:     http://git.kernel.org/linus/7e31a966ad270ba32a77c157c015cd7c82faaa55
Commit:     7e31a966ad270ba32a77c157c015cd7c82faaa55
Parent:     a5a0a630922a2f6a774b6dac19f70cb5abd86bb0
Author:     Tao Ma <tao.ma@oracle.com>
AuthorDate: Wed Apr 29 01:20:55 2009 +0800
Committer:  Joel Becker <joel.becker@oracle.com>
CommitDate: Wed Apr 29 10:57:18 2009 -0700

    ocfs2/trivial: Remove unused variable in ocfs2_rename.
    
    With indexed dir enabled, now we use ocfs2_dir_lookup_result to
    wrap all the bh used for dir. So remove the 2 unused variables.
    
    Signed-off-by: Tao Ma <tao.ma@oracle.com>
    Signed-off-by: Joel Becker <joel.becker@oracle.com>
---
 fs/ocfs2/namei.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 2220f93..33464c6 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -1025,10 +1025,8 @@ static int ocfs2_rename(struct inode *old_dir,
 	struct inode *orphan_dir = NULL;
 	struct ocfs2_dinode *newfe = NULL;
 	char orphan_name[OCFS2_ORPHAN_NAMELEN + 1];
-	struct buffer_head *orphan_entry_bh = NULL;
 	struct buffer_head *newfe_bh = NULL;
 	struct buffer_head *old_inode_bh = NULL;
-	struct buffer_head *insert_entry_bh = NULL;
 	struct ocfs2_super *osb = NULL;
 	u64 newfe_blkno, old_de_ino;
 	handle_t *handle = NULL;
@@ -1455,8 +1453,6 @@ bail:
 	brelse(old_inode_bh);
 	brelse(old_dir_bh);
 	brelse(new_dir_bh);
-	brelse(orphan_entry_bh);
-	brelse(insert_entry_bh);
 
 	mlog_exit(status);
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ocfs2/trivial: Remove unused variable in ocfs2_rename., Linux Kernel Mailing ..., (Sat May 2, 5:00 pm)