]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] don't encode parent in nfs filehandles unless nessecary
authorChristoph Hellwig <hch@infradead.org>
Thu, 6 Mar 2008 02:45:16 +0000 (13:45 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 18 Apr 2008 01:39:35 +0000 (11:39 +1000)
commit0946edc88beee67cca225ad5b199ce0b1001250b
tree11092d964b9323c9eaef3df36bd77ef7ff03281b
parent5c02c27059d4f709f614ed277399637cd63ef270
[XFS] don't encode parent in nfs filehandles unless nessecary

As Dave pointed out after the export ops changes we now always encode the
parent into the filehandle for regular files, but it's not actually needed
when the filesystem is export with no_subtree_check. This one-liner fixes
xfs_fs_encode_fh to skip encoding the parent unless nessecary.

SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:30535a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_export.c