]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nfs: store devname at disconnected NFS roots
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 16 Mar 2011 09:44:14 +0000 (05:44 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 16 Mar 2011 20:44:24 +0000 (16:44 -0400)
commitb1942c5f8cf3bea3a3c88a7498ae4c4361f31afe
tree0ff98cbdf75b23104df97344dcd6a35a86bbe9ec
parent0d5839ad05acd0fe2a84a39f33ac5efdf634a5a5
nfs: store devname at disconnected NFS roots

part 2: make sure that disconnected roots have corresponding mnt_devname
values stashed into them.

Have nfs*_get_root() stuff a copy of devname into ->d_fsdata of the
found root, provided that it is disconnected.

Have ->d_release() free it when dentry goes away.

Have the places where NFS uses ->d_fsdata for sillyrename (and that
can *never* happen to a disconnected root - dentry will be attached
to its parent) free old devname copies if they find those.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfs/dir.c
fs/nfs/getroot.c
fs/nfs/unlink.c