vfs: more mnt_parent cleanups
a) mount --move is checking that ->mnt_parent is non-NULL before looking if that parent happens to be shared; ->mnt_parent is never NULL and it's not even an misspelled !mnt_has_parent() b) pivot_root open-codes is_path_reachable(), poorly. c) so does path_is_under(), while we are at it. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
		
					parent
					
						
							
								b2dba1af3c
							
						
					
				
			
			
				commit
				
					
						afac7cba7e
					
				
			
		
					 4 changed files with 29 additions and 55 deletions
				
			
		| 
						 | 
				
			
			@ -42,4 +42,6 @@ void mnt_set_mountpoint(struct vfsmount *, struct dentry *,
 | 
			
		|||
void release_mounts(struct list_head *);
 | 
			
		||||
void umount_tree(struct vfsmount *, int, struct list_head *);
 | 
			
		||||
struct vfsmount *copy_tree(struct vfsmount *, struct dentry *, int);
 | 
			
		||||
bool is_path_reachable(struct vfsmount *, struct dentry *,
 | 
			
		||||
			 const struct path *root);
 | 
			
		||||
#endif /* _LINUX_PNODE_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue