Commit 9b572691 authored by Daeseok Youn's avatar Daeseok Youn Committed by Linus Torvalds

ocfs2: removes mlog_errno() call twice in ocfs2_find_dir_space_el()

mlog_errno() is called twice when some functions are failed.
Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 592a202a
...@@ -3456,10 +3456,8 @@ static int ocfs2_find_dir_space_el(struct inode *dir, const char *name, ...@@ -3456,10 +3456,8 @@ static int ocfs2_find_dir_space_el(struct inode *dir, const char *name,
int blocksize = dir->i_sb->s_blocksize; int blocksize = dir->i_sb->s_blocksize;
status = ocfs2_read_dir_block(dir, 0, &bh, 0); status = ocfs2_read_dir_block(dir, 0, &bh, 0);
if (status) { if (status)
mlog_errno(status);
goto bail; goto bail;
}
rec_len = OCFS2_DIR_REC_LEN(namelen); rec_len = OCFS2_DIR_REC_LEN(namelen);
offset = 0; offset = 0;
...@@ -3480,10 +3478,9 @@ static int ocfs2_find_dir_space_el(struct inode *dir, const char *name, ...@@ -3480,10 +3478,9 @@ static int ocfs2_find_dir_space_el(struct inode *dir, const char *name,
status = ocfs2_read_dir_block(dir, status = ocfs2_read_dir_block(dir,
offset >> sb->s_blocksize_bits, offset >> sb->s_blocksize_bits,
&bh, 0); &bh, 0);
if (status) { if (status)
mlog_errno(status);
goto bail; goto bail;
}
/* move to next block */ /* move to next block */
de = (struct ocfs2_dir_entry *) bh->b_data; de = (struct ocfs2_dir_entry *) bh->b_data;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment