]> err.no Git - linux-2.6/blobdiff - fs/pnode.c
[PATCH] nfsd4: recovery lookup dir check
[linux-2.6] / fs / pnode.c
index 3e266c5a3071a4994d7d635c3259d7c9b0721149..f1871f773f642c8f39045431f5e42134e93ea80f 100644 (file)
@@ -82,6 +82,8 @@ void change_mnt_propagation(struct vfsmount *mnt, int type)
        if (type != MS_SLAVE) {
                list_del_init(&mnt->mnt_slave);
                mnt->mnt_master = NULL;
+               if (type == MS_UNBINDABLE)
+                       mnt->mnt_flags |= MNT_UNBINDABLE;
        }
 }
 
@@ -101,7 +103,7 @@ static struct vfsmount *propagation_next(struct vfsmount *m,
                struct vfsmount *next;
                struct vfsmount *master = m->mnt_master;
 
-               if ( master == origin->mnt_master ) {
+               if (master == origin->mnt_master) {
                        next = next_peer(m);
                        return ((next == origin) ? NULL : next);
                } else if (m->mnt_slave.next != &master->mnt_slave_list)