aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_readdir.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2014-12-03 17:46:17 -0500
committerDave Chinner <david@fromorbit.com>2014-12-03 17:46:17 -0500
commit6044e4386cd51dece882ea42352cdaaab0f24cad (patch)
treecde51132ea9d6afefdf05ad621fc22bbb796d5f4 /fs/xfs/xfs_dir2_readdir.c
parentc14fc01340dd0afe58d8671acc3ea5e907e707ae (diff)
parentb29c70f59870dad0945b0e0b3fe3758ad528e268 (diff)
Merge branch 'xfs-misc-fixes-for-3.19-2' into for-next
Conflicts: fs/xfs/xfs_iops.c
Diffstat (limited to 'fs/xfs/xfs_dir2_readdir.c')
-rw-r--r--fs/xfs/xfs_dir2_readdir.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c
index b5a10d2e9aef..098cd78fe708 100644
--- a/fs/xfs/xfs_dir2_readdir.c
+++ b/fs/xfs/xfs_dir2_readdir.c
@@ -41,7 +41,7 @@ static unsigned char xfs_dir3_filetype_table[] = {
41 DT_FIFO, DT_SOCK, DT_LNK, DT_WHT, 41 DT_FIFO, DT_SOCK, DT_LNK, DT_WHT,
42}; 42};
43 43
44unsigned char 44static unsigned char
45xfs_dir3_get_dtype( 45xfs_dir3_get_dtype(
46 struct xfs_mount *mp, 46 struct xfs_mount *mp,
47 __uint8_t filetype) 47 __uint8_t filetype)
@@ -54,22 +54,6 @@ xfs_dir3_get_dtype(
54 54
55 return xfs_dir3_filetype_table[filetype]; 55 return xfs_dir3_filetype_table[filetype];
56} 56}
57/*
58 * @mode, if set, indicates that the type field needs to be set up.
59 * This uses the transformation from file mode to DT_* as defined in linux/fs.h
60 * for file type specification. This will be propagated into the directory
61 * structure if appropriate for the given operation and filesystem config.
62 */
63const unsigned char xfs_mode_to_ftype[S_IFMT >> S_SHIFT] = {
64 [0] = XFS_DIR3_FT_UNKNOWN,
65 [S_IFREG >> S_SHIFT] = XFS_DIR3_FT_REG_FILE,
66 [S_IFDIR >> S_SHIFT] = XFS_DIR3_FT_DIR,
67 [S_IFCHR >> S_SHIFT] = XFS_DIR3_FT_CHRDEV,
68 [S_IFBLK >> S_SHIFT] = XFS_DIR3_FT_BLKDEV,
69 [S_IFIFO >> S_SHIFT] = XFS_DIR3_FT_FIFO,
70 [S_IFSOCK >> S_SHIFT] = XFS_DIR3_FT_SOCK,
71 [S_IFLNK >> S_SHIFT] = XFS_DIR3_FT_SYMLINK,
72};
73 57
74STATIC int 58STATIC int
75xfs_dir2_sf_getdents( 59xfs_dir2_sf_getdents(