Lines Matching +full:use +full:- +full:case

1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2004-2005 Silicon Graphics, Inc.
28 case FILEID_INO32_GEN: in xfs_fileid_length()
30 case FILEID_INO32_GEN_PARENT: in xfs_fileid_length()
32 case FILEID_INO32_GEN | XFS_FILEID_TYPE_64FLAG: in xfs_fileid_length()
34 case FILEID_INO32_GEN_PARENT | XFS_FILEID_TYPE_64FLAG: in xfs_fileid_length()
47 struct xfs_mount *mp = XFS_M(inode->i_sb); in xfs_fs_encode_fh()
61 * to use larger file handles that can represent them. in xfs_fs_encode_fh()
74 * seven combinations work. The real answer is "don't use v2". in xfs_fs_encode_fh()
84 case FILEID_INO32_GEN_PARENT: in xfs_fs_encode_fh()
85 fid->i32.parent_ino = XFS_I(parent)->i_ino; in xfs_fs_encode_fh()
86 fid->i32.parent_gen = parent->i_generation; in xfs_fs_encode_fh()
88 case FILEID_INO32_GEN: in xfs_fs_encode_fh()
89 fid->i32.ino = XFS_I(inode)->i_ino; in xfs_fs_encode_fh()
90 fid->i32.gen = inode->i_generation; in xfs_fs_encode_fh()
92 case FILEID_INO32_GEN_PARENT | XFS_FILEID_TYPE_64FLAG: in xfs_fs_encode_fh()
93 fid64->parent_ino = XFS_I(parent)->i_ino; in xfs_fs_encode_fh()
94 fid64->parent_gen = parent->i_generation; in xfs_fs_encode_fh()
96 case FILEID_INO32_GEN | XFS_FILEID_TYPE_64FLAG: in xfs_fs_encode_fh()
97 fid64->ino = XFS_I(inode)->i_ino; in xfs_fs_encode_fh()
98 fid64->gen = inode->i_generation; in xfs_fs_encode_fh()
119 return ERR_PTR(-ESTALE); in xfs_nfs_get_inode()
134 * We don't use ESTALE directly down the chain to not in xfs_nfs_get_inode()
138 case -EINVAL: in xfs_nfs_get_inode()
139 case -ENOENT: in xfs_nfs_get_inode()
140 case -EFSCORRUPTED: in xfs_nfs_get_inode()
141 error = -ESTALE; in xfs_nfs_get_inode()
151 * Use an unlocked check here because unrecovered unlinked inodes in xfs_nfs_get_inode()
163 if (VFS_I(ip)->i_generation != generation || IS_PRIVATE(VFS_I(ip))) { in xfs_nfs_get_inode()
165 return ERR_PTR(-ESTALE); in xfs_nfs_get_inode()
182 case FILEID_INO32_GEN_PARENT: in xfs_fs_fh_to_dentry()
183 case FILEID_INO32_GEN: in xfs_fs_fh_to_dentry()
184 inode = xfs_nfs_get_inode(sb, fid->i32.ino, fid->i32.gen); in xfs_fs_fh_to_dentry()
186 case FILEID_INO32_GEN_PARENT | XFS_FILEID_TYPE_64FLAG: in xfs_fs_fh_to_dentry()
187 case FILEID_INO32_GEN | XFS_FILEID_TYPE_64FLAG: in xfs_fs_fh_to_dentry()
188 inode = xfs_nfs_get_inode(sb, fid64->ino, fid64->gen); in xfs_fs_fh_to_dentry()
206 case FILEID_INO32_GEN_PARENT: in xfs_fs_fh_to_parent()
207 inode = xfs_nfs_get_inode(sb, fid->i32.parent_ino, in xfs_fs_fh_to_parent()
208 fid->i32.parent_gen); in xfs_fs_fh_to_parent()
210 case FILEID_INO32_GEN_PARENT | XFS_FILEID_TYPE_64FLAG: in xfs_fs_fh_to_parent()
211 inode = xfs_nfs_get_inode(sb, fid64->parent_ino, in xfs_fs_fh_to_parent()
212 fid64->parent_gen); in xfs_fs_fh_to_parent()