mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	ovl: use lockless_dereference() for upperdentry
Don't open code lockless_dereference() in ovl_upperdentry_dereference(). Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
		
							parent
							
								
									91c7794713
								
							
						
					
					
						commit
						71d509280f
					
				
					 1 changed files with 1 additions and 6 deletions
				
			
		| 
						 | 
					@ -84,12 +84,7 @@ enum ovl_path_type ovl_path_type(struct dentry *dentry)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct dentry *ovl_upperdentry_dereference(struct ovl_entry *oe)
 | 
					static struct dentry *ovl_upperdentry_dereference(struct ovl_entry *oe)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct dentry *upperdentry = ACCESS_ONCE(oe->__upperdentry);
 | 
						return lockless_dereference(oe->__upperdentry);
 | 
				
			||||||
	/*
 | 
					 | 
				
			||||||
	 * Make sure to order reads to upperdentry wrt ovl_dentry_update()
 | 
					 | 
				
			||||||
	 */
 | 
					 | 
				
			||||||
	smp_read_barrier_depends();
 | 
					 | 
				
			||||||
	return upperdentry;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void ovl_path_upper(struct dentry *dentry, struct path *path)
 | 
					void ovl_path_upper(struct dentry *dentry, struct path *path)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue