[PATCH 3/8] vfs - add path_has_submounts()

2016-10-10 Thread Ian Kent
From: Ian Kent d_mountpoint() can only be used reliably to establish if a dentry is not mounted in any namespace. It isn't aware of the possibility there may be multiple mounts using the given dentry, possibly in a different namespace. Add function, path_has_submounts(), that checks is a struct

[RFC PATCH 3/8] vfs - add path_has_submounts()

2016-10-02 Thread Ian Kent
From: Ian Kent d_mountpoint() can only be used reliably to establish if a dentry is not mounted in any namespace. It isn't aware of the possibility there may be multiple mounts using the given dentry, possibly in a different namespace. Add function, path_has_submounts(), that checks is a struct