]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
sync with recent kernel changes (uchar) - noop change cos we
authorNathan Scott <nathans@sgi.com>
Sun, 3 Feb 2002 09:54:01 +0000 (09:54 +0000)
committerNathan Scott <nathans@sgi.com>
Sun, 3 Feb 2002 09:54:01 +0000 (09:54 +0000)
build userspace with -funsigned-char anyway.

db/hash.h
include/libxfs.h
include/platform_defs.h.in
include/xfs_da_btree.h
include/xfs_inode.h
libxfs/xfs_da_btree.c

index 05c80750310d4f5089c460240f35089b856f0ff1..435f461320fe0f258c065401884dc4ab0efb2fb8 100644 (file)
--- a/db/hash.h
+++ b/db/hash.h
@@ -31,4 +31,3 @@
  */
 
 extern void            hash_init(void);
-extern xfs_dahash_t    xfs_da_hashname(char *name, int namelen);
index 7701de512405966c9b4053ba14c300503e7994dd..3df81732a5218108ff728db792515cb1e7328dab 100644 (file)
@@ -422,7 +422,7 @@ extern int  libxfs_alloc_fix_freelist (xfs_alloc_arg_t *, int);
 extern int     libxfs_alloc_file_space (xfs_inode_t *, xfs_off_t,
                                xfs_off_t, int, int);
 
-extern xfs_dahash_t    libxfs_da_hashname (char *, int);
+extern xfs_dahash_t    libxfs_da_hashname (uchar_t *, int);
 extern int     libxfs_attr_leaf_newentsize (xfs_da_args_t *, int, int *);
 
 extern xfs_filblks_t   libxfs_bmbt_get_blockcount (xfs_bmbt_rec_t *);
index 3715fdd1339dc56552e56b5a58364119ed51f050..2390eb912d0a9467016c55f0fa601d7060580c71 100644 (file)
@@ -74,6 +74,8 @@ typedef __uint32_t    xfs_dev_t;
 typedef __int64_t      xfs_daddr_t;
 typedef char*          xfs_caddr_t;
 
+typedef unsigned char  uchar_t;
+
 /* long and pointer must be either 32 bit or 64 bit */
 #undef HAVE_64BIT_LONG
 #undef HAVE_32BIT_LONG
index a9d2a1502e844b4f229d28725fa328c350511c86..7065167746849d401d131179489e0e3ceaf368a1 100644 (file)
@@ -177,9 +177,9 @@ int xfs_da_cookie_entry(struct xfs_mount *mp, xfs_off_t cookie);
  * Structure to ease passing around component names.
  */
 typedef struct xfs_da_args {
-       char            *name;          /* string (maybe not NULL terminated) */
+       uchar_t         *name;          /* string (maybe not NULL terminated) */
        int             namelen;        /* length of string (maybe no NULL) */
-       char            *value;         /* set of bytes (maybe contain NULLs) */
+       uchar_t         *value;         /* set of bytes (maybe contain NULLs) */
        int             valuelen;       /* length of value */
        int             flags;          /* argument flags (eg: ATTR_NOCREATE) */
        xfs_dahash_t    hashval;        /* hash value of name */
@@ -322,7 +322,7 @@ xfs_daddr_t xfs_da_reada_buf(struct xfs_trans *trans, struct xfs_inode *dp,
 int    xfs_da_shrink_inode(xfs_da_args_t *args, xfs_dablk_t dead_blkno,
                                          xfs_dabuf_t *dead_buf);
 
-uint xfs_da_hashname(char *name_string, int name_length);
+uint xfs_da_hashname(uchar_t *name_string, int name_length);
 uint xfs_da_log2_roundup(uint i);
 xfs_da_state_t *xfs_da_state_alloc(void);
 void xfs_da_state_free(xfs_da_state_t *state);
index 40b90568af0d1041eaae4865cd29fe8dfe700d78..e27f03b8d77db1aaaab00c810cc7a81d2a4d9539 100644 (file)
@@ -457,18 +457,18 @@ void xfs_ifork_next_set(xfs_inode_t *ip, int w, int n);
 #define        XFS_ITRUNC_MAYBE        0x2
 
 /*
- * if XFS_BIG_FILES, 2^(32+PAGE_SHIFT) - 1 (due to linux page cache),
+ * if XFS_BIG_FILES, 2^(31+PAGE_SHIFT) - 1 (due to linux page cache),
  * else 2^40 - 1 (40=31+9) (might be an int holding a block #)
  * For the not XFS_BIG_FILES case, the value could be 1 higher but we don't
  * do that, for symmetry.
  *
  * NOTE: XFS itself can handle 2^63 - 1 (largest positive value of xfs_fsize_t)
- * but Linux can't go above 2^(32+PAGE_SHIFT)-1: the Linux VM uses a 32 bit
- * page number index to index cache data, so 2^32 * PAGE_SIZE is as big as 
+ * but Linux can't go above 2^(31+PAGE_SHIFT)-1: the Linux VM uses a 32 bit
+ * signed variable to index cache data, so 2^31 * PAGE_SIZE is as big as 
  * you can go.
  */
 #if XFS_BIG_FILES
-#define XFS_MAX_FILE_OFFSET    ((long long)((1ULL<<(32+PAGE_SHIFT))-1ULL))
+#define XFS_MAX_FILE_OFFSET    ((long long)((1ULL<<(31+PAGE_SHIFT))-1ULL))
 #else
 #define        XFS_MAX_FILE_OFFSET     ((1LL<<40)-1LL)
 #endif
index be44b985fccb5e013b3b1671a4f88532006d7798..e38bf0fe8d6c48bf5f47aa6fa9d69641714899cf 100644 (file)
@@ -1551,7 +1551,7 @@ xfs_da_path_shift(xfs_da_state_t *state, xfs_da_state_path_t *path,
  * This is implemented with some source-level loop unrolling.
  */
 xfs_dahash_t
-xfs_da_hashname(char *name, int namelen)
+xfs_da_hashname(uchar_t *name, int namelen)
 {
        xfs_dahash_t hash;