diff options
Diffstat (limited to 'fs/xfs/xfs_export.c')
-rw-r--r-- | fs/xfs/xfs_export.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_export.c b/fs/xfs/xfs_export.c index 652cd3c5b58c..a1b2dd828b9d 100644 --- a/fs/xfs/xfs_export.c +++ b/fs/xfs/xfs_export.c | |||
@@ -152,7 +152,7 @@ xfs_nfs_get_inode( | |||
152 | return ERR_PTR(error); | 152 | return ERR_PTR(error); |
153 | } | 153 | } |
154 | 154 | ||
155 | if (ip->i_d.di_gen != generation) { | 155 | if (VFS_I(ip)->i_generation != generation) { |
156 | IRELE(ip); | 156 | IRELE(ip); |
157 | return ERR_PTR(-ESTALE); | 157 | return ERR_PTR(-ESTALE); |
158 | } | 158 | } |
@@ -246,7 +246,7 @@ const struct export_operations xfs_export_operations = { | |||
246 | .fh_to_parent = xfs_fs_fh_to_parent, | 246 | .fh_to_parent = xfs_fs_fh_to_parent, |
247 | .get_parent = xfs_fs_get_parent, | 247 | .get_parent = xfs_fs_get_parent, |
248 | .commit_metadata = xfs_fs_nfs_commit_metadata, | 248 | .commit_metadata = xfs_fs_nfs_commit_metadata, |
249 | #ifdef CONFIG_NFSD_PNFS | 249 | #ifdef CONFIG_NFSD_BLOCKLAYOUT |
250 | .get_uuid = xfs_fs_get_uuid, | 250 | .get_uuid = xfs_fs_get_uuid, |
251 | .map_blocks = xfs_fs_map_blocks, | 251 | .map_blocks = xfs_fs_map_blocks, |
252 | .commit_blocks = xfs_fs_commit_blocks, | 252 | .commit_blocks = xfs_fs_commit_blocks, |