|
@@ -2332,8 +2332,7 @@ int ocfs2_orphan_del(struct ocfs2_super *osb,
|
|
|
struct buffer_head *orphan_dir_bh,
|
|
|
bool dio)
|
|
|
{
|
|
|
- const int namelen = OCFS2_DIO_ORPHAN_PREFIX_LEN + OCFS2_ORPHAN_NAMELEN;
|
|
|
- char name[namelen + 1];
|
|
|
+ char name[OCFS2_DIO_ORPHAN_PREFIX_LEN + OCFS2_ORPHAN_NAMELEN + 1];
|
|
|
struct ocfs2_dinode *orphan_fe;
|
|
|
int status = 0;
|
|
|
struct ocfs2_dir_lookup_result lookup = { NULL, };
|