diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /fs/xfs/xfs_da_btree.h | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'fs/xfs/xfs_da_btree.h')
-rw-r--r-- | fs/xfs/xfs_da_btree.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/xfs/xfs_da_btree.h b/fs/xfs/xfs_da_btree.h index 8c536167bf75..fe9f5a8c1d2a 100644 --- a/fs/xfs/xfs_da_btree.h +++ b/fs/xfs/xfs_da_btree.h | |||
@@ -125,6 +125,13 @@ typedef struct xfs_da_args { | |||
125 | #define XFS_DA_OP_OKNOENT 0x0008 /* lookup/add op, ENOENT ok, else die */ | 125 | #define XFS_DA_OP_OKNOENT 0x0008 /* lookup/add op, ENOENT ok, else die */ |
126 | #define XFS_DA_OP_CILOOKUP 0x0010 /* lookup to return CI name if found */ | 126 | #define XFS_DA_OP_CILOOKUP 0x0010 /* lookup to return CI name if found */ |
127 | 127 | ||
128 | #define XFS_DA_OP_FLAGS \ | ||
129 | { XFS_DA_OP_JUSTCHECK, "JUSTCHECK" }, \ | ||
130 | { XFS_DA_OP_RENAME, "RENAME" }, \ | ||
131 | { XFS_DA_OP_ADDNAME, "ADDNAME" }, \ | ||
132 | { XFS_DA_OP_OKNOENT, "OKNOENT" }, \ | ||
133 | { XFS_DA_OP_CILOOKUP, "CILOOKUP" } | ||
134 | |||
128 | /* | 135 | /* |
129 | * Structure to describe buffer(s) for a block. | 136 | * Structure to describe buffer(s) for a block. |
130 | * This is needed in the directory version 2 format case, when | 137 | * This is needed in the directory version 2 format case, when |
@@ -202,7 +209,8 @@ typedef struct xfs_da_state { | |||
202 | */ | 209 | */ |
203 | struct xfs_nameops { | 210 | struct xfs_nameops { |
204 | xfs_dahash_t (*hashname)(struct xfs_name *); | 211 | xfs_dahash_t (*hashname)(struct xfs_name *); |
205 | enum xfs_dacmp (*compname)(struct xfs_da_args *, const char *, int); | 212 | enum xfs_dacmp (*compname)(struct xfs_da_args *, |
213 | const unsigned char *, int); | ||
206 | }; | 214 | }; |
207 | 215 | ||
208 | 216 | ||
@@ -253,7 +261,7 @@ int xfs_da_shrink_inode(xfs_da_args_t *args, xfs_dablk_t dead_blkno, | |||
253 | 261 | ||
254 | uint xfs_da_hashname(const __uint8_t *name_string, int name_length); | 262 | uint xfs_da_hashname(const __uint8_t *name_string, int name_length); |
255 | enum xfs_dacmp xfs_da_compname(struct xfs_da_args *args, | 263 | enum xfs_dacmp xfs_da_compname(struct xfs_da_args *args, |
256 | const char *name, int len); | 264 | const unsigned char *name, int len); |
257 | 265 | ||
258 | 266 | ||
259 | xfs_da_state_t *xfs_da_state_alloc(void); | 267 | xfs_da_state_t *xfs_da_state_alloc(void); |