diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-03-05 21:45:16 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-04-17 21:39:35 -0400 |
commit | 24bd861d1c3fff5248de7ba3bdddb3369087ad46 (patch) | |
tree | 11092d964b9323c9eaef3df36bd77ef7ff03281b /fs/xfs/linux-2.6 | |
parent | 126468b1156211e26d97f74b2f1767acd141005a (diff) |
[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>
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_export.c b/fs/xfs/linux-2.6/xfs_export.c index ca4f66c4de16..21f0e8257590 100644 --- a/fs/xfs/linux-2.6/xfs_export.c +++ b/fs/xfs/linux-2.6/xfs_export.c | |||
@@ -66,7 +66,7 @@ xfs_fs_encode_fh( | |||
66 | int len; | 66 | int len; |
67 | 67 | ||
68 | /* Directories don't need their parent encoded, they have ".." */ | 68 | /* Directories don't need their parent encoded, they have ".." */ |
69 | if (S_ISDIR(inode->i_mode)) | 69 | if (S_ISDIR(inode->i_mode) || !connectable) |
70 | fileid_type = FILEID_INO32_GEN; | 70 | fileid_type = FILEID_INO32_GEN; |
71 | else | 71 | else |
72 | fileid_type = FILEID_INO32_GEN_PARENT; | 72 | fileid_type = FILEID_INO32_GEN_PARENT; |