Compare prepaths when comparing superblocks
authorSachin Prabhu <sprabhu@redhat.com>
Fri, 29 Jul 2016 21:38:20 +0000 (22:38 +0100)
committerSteve French <smfrench@gmail.com>
Sat, 10 Sep 2016 04:58:06 +0000 (23:58 -0500)
commitc1d8b24d18192764fe82067ec6aa8d4c3bf094e0
tree0347a017fef6d42bc5a47a5c708cc1e96112cc1b
parent4214ebf4654798309364d0c678b799e402f38288
Compare prepaths when comparing superblocks

The patch
fs/cifs: make share unaccessible at root level mountable
makes use of prepaths when any component of the underlying path is
inaccessible.

When mounting 2 separate shares having different prepaths but are other
wise similar in other respects, we end up sharing superblocks when we
shouldn't be doing so.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Tested-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c