diff options
Diffstat (limited to 'fs/xfs/xfs_dir2.h')
-rw-r--r-- | fs/xfs/xfs_dir2.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/fs/xfs/xfs_dir2.h b/fs/xfs/xfs_dir2.h index 86560b6f794c..fa5a533a3427 100644 --- a/fs/xfs/xfs_dir2.h +++ b/fs/xfs/xfs_dir2.h | |||
@@ -60,21 +60,6 @@ typedef __uint32_t xfs_dir2_db_t; | |||
60 | typedef xfs_off_t xfs_dir2_off_t; | 60 | typedef xfs_off_t xfs_dir2_off_t; |
61 | 61 | ||
62 | /* | 62 | /* |
63 | * For getdents, argument struct for put routines. | ||
64 | */ | ||
65 | typedef int (*xfs_dir2_put_t)(struct xfs_dir2_put_args *pa); | ||
66 | typedef struct xfs_dir2_put_args { | ||
67 | xfs_off_t cook; /* cookie of (next) entry */ | ||
68 | xfs_intino_t ino; /* inode number */ | ||
69 | xfs_dirent_t *dbp; /* buffer pointer */ | ||
70 | char *name; /* directory entry name */ | ||
71 | int namelen; /* length of name */ | ||
72 | int done; /* output: set if value was stored */ | ||
73 | xfs_dir2_put_t put; /* put function ptr (i/o) */ | ||
74 | struct uio *uio; /* uio control structure */ | ||
75 | } xfs_dir2_put_args_t; | ||
76 | |||
77 | /* | ||
78 | * Generic directory interface routines | 63 | * Generic directory interface routines |
79 | */ | 64 | */ |
80 | extern void xfs_dir_startup(void); | 65 | extern void xfs_dir_startup(void); |
@@ -92,8 +77,6 @@ extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp, | |||
92 | char *name, int namelen, xfs_ino_t ino, | 77 | char *name, int namelen, xfs_ino_t ino, |
93 | xfs_fsblock_t *first, | 78 | xfs_fsblock_t *first, |
94 | struct xfs_bmap_free *flist, xfs_extlen_t tot); | 79 | struct xfs_bmap_free *flist, xfs_extlen_t tot); |
95 | extern int xfs_dir_getdents(struct xfs_trans *tp, struct xfs_inode *dp, | ||
96 | uio_t *uio, int *eofp); | ||
97 | extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp, | 80 | extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp, |
98 | char *name, int namelen, xfs_ino_t inum, | 81 | char *name, int namelen, xfs_ino_t inum, |
99 | xfs_fsblock_t *first, | 82 | xfs_fsblock_t *first, |
@@ -101,6 +84,8 @@ extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp, | |||
101 | extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp, | 84 | extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp, |
102 | char *name, int namelen); | 85 | char *name, int namelen); |
103 | extern int xfs_dir_ino_validate(struct xfs_mount *mp, xfs_ino_t ino); | 86 | extern int xfs_dir_ino_validate(struct xfs_mount *mp, xfs_ino_t ino); |
87 | extern int xfs_readdir(bhv_desc_t *dir_bdp, void *dirent, size_t bufsize, | ||
88 | xfs_off_t *offset, filldir_t filldir); | ||
104 | 89 | ||
105 | /* | 90 | /* |
106 | * Utility routines for v2 directories. | 91 | * Utility routines for v2 directories. |