File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,6 @@ static struct dentry *ovl_obtain_alias(struct super_block *sb,
289
289
{
290
290
struct dentry * lower = lowerpath ? lowerpath -> dentry : NULL ;
291
291
struct dentry * upper = upper_alias ?: index ;
292
- struct dentry * dentry ;
293
292
struct inode * inode = NULL ;
294
293
struct ovl_entry * oe ;
295
294
struct ovl_inode_params oip = {
@@ -320,27 +319,7 @@ static struct dentry *ovl_obtain_alias(struct super_block *sb,
320
319
if (upper )
321
320
ovl_set_flag (OVL_UPPERDATA , inode );
322
321
323
- dentry = d_find_any_alias (inode );
324
- if (dentry )
325
- goto out_iput ;
326
-
327
- dentry = d_alloc_anon (inode -> i_sb );
328
- if (unlikely (!dentry ))
329
- goto nomem ;
330
-
331
- if (upper_alias )
332
- ovl_dentry_set_upper_alias (dentry );
333
-
334
- ovl_dentry_init_reval (dentry , upper , OVL_I_E (inode ));
335
-
336
- return d_instantiate_anon (dentry , inode );
337
-
338
- nomem :
339
- dput (dentry );
340
- dentry = ERR_PTR (- ENOMEM );
341
- out_iput :
342
- iput (inode );
343
- return dentry ;
322
+ return d_obtain_alias (inode );
344
323
}
345
324
346
325
/* Get the upper or lower dentry in stack whose on layer @idx */
You can’t perform that action at this time.
0 commit comments