Skip to content

Commit

Permalink
ocfs2/trivial: Remove unused variable in ocfs2_rename.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tao Ma authored and Joel Becker committed Apr 29, 2009
1 parent a5a0a63 commit 7e31a96
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/ocfs2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1455,8 +1453,6 @@ static int ocfs2_rename(struct inode *old_dir,
brelse(old_inode_bh);
brelse(old_dir_bh);
brelse(new_dir_bh);
brelse(orphan_entry_bh);
brelse(insert_entry_bh);

mlog_exit(status);

Expand Down

0 comments on commit 7e31a96

Please sign in to comment.