]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
[PATCH] knfsd: tidy up choice of filesystem-identifier when creating a filehandle
authorNeilBrown <neilb@suse.de>
Wed, 14 Feb 2007 08:33:11 +0000 (00:33 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 14 Feb 2007 16:09:53 +0000 (08:09 -0800)
commit982aedfd091e6d9831216f8519f12242091be4fd
tree88dd7b785c86f29ad68d6a116d39a037d64929d0
parent8971a1016b9db4164c3c1b47ae1fde2818becf91
[PATCH] knfsd: tidy up choice of filesystem-identifier when creating a filehandle

If we are using the same version/fsid as a current filehandle, then there is
no need to verify the the numbers are valid for this export, and they must be
(we used them to find this export).

This allows us to simplify the fsid selection code.

Also change "ref_fh_version" and "ref_fh_fsid_type" to "version" and
"fsid_type", as the important thing isn't that they are the version/type of
the reference filehandle, but they are the chosen type for the new filehandle.

And tidy up some indenting.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfsd/nfsfh.c