Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
659f129a
Commit
659f129a
authored
Nov 26, 2002
by
Nathan Scott
Committed by
Christoph Hellwig
Nov 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Rethink some of those recent types changes slightly.
SGI Modid: 2.5.x-xfs:slinx:132993a
parent
8bd64089
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
26 deletions
+26
-26
fs/xfs/linux/xfs_linux.h
fs/xfs/linux/xfs_linux.h
+12
-0
fs/xfs/support/time.h
fs/xfs/support/time.h
+0
-2
fs/xfs/support/uuid.c
fs/xfs/support/uuid.c
+2
-2
fs/xfs/support/uuid.h
fs/xfs/support/uuid.h
+2
-11
fs/xfs/xfs_types.h
fs/xfs/xfs_types.h
+10
-11
No files found.
fs/xfs/linux/xfs_linux.h
View file @
659f129a
...
...
@@ -72,6 +72,18 @@
#define irix_sgid_inherit xfs_params.sgid_inherit
#define irix_symlink_mode xfs_params.symlink_mode
typedef
struct
xfs_dirent
{
/* data from readdir() */
xfs_ino_t
d_ino
;
/* inode number of entry */
xfs_off_t
d_off
;
/* offset of disk directory entry */
unsigned
short
d_reclen
;
/* length of this record */
char
d_name
[
1
];
/* name of file */
}
xfs_dirent_t
;
#define DIRENTBASESIZE (((xfs_dirent_t *)0)->d_name - (char *)0)
#define DIRENTSIZE(namelen) \
((DIRENTBASESIZE + (namelen) + \
sizeof(xfs_off_t)) & ~(sizeof(xfs_off_t) - 1))
#define NBPP PAGE_SIZE
#define DPPSHFT (PAGE_SHIFT - 9)
#define NDPP (1 << (PAGE_SHIFT - 9))
...
...
fs/xfs/support/time.h
View file @
659f129a
...
...
@@ -35,8 +35,6 @@
#include <linux/sched.h>
#include <linux/time.h>
typedef
struct
timespec
timespec_t
;
static
inline
void
delay
(
long
ticks
)
{
current
->
state
=
TASK_UNINTERRUPTIBLE
;
...
...
fs/xfs/support/uuid.c
View file @
659f129a
...
...
@@ -112,7 +112,7 @@ uuid_create_nil(uuid_t *uuid)
memset
(
uuid
,
0
,
sizeof
(
*
uuid
));
}
boolean_
t
in
t
uuid_is_nil
(
uuid_t
*
uuid
)
{
int
i
;
...
...
@@ -126,7 +126,7 @@ uuid_is_nil(uuid_t *uuid)
return
B_TRUE
;
/* is nil */
}
boolean_
t
in
t
uuid_equal
(
uuid_t
*
uuid1
,
uuid_t
*
uuid2
)
{
return
memcmp
(
uuid1
,
uuid2
,
sizeof
(
uuid_t
))
?
B_FALSE
:
B_TRUE
;
...
...
fs/xfs/support/uuid.h
View file @
659f129a
...
...
@@ -32,18 +32,9 @@
#ifndef __XFS_SUPPORT_UUID_H__
#define __XFS_SUPPORT_UUID_H__
typedef
enum
{
B_FALSE
,
B_TRUE
}
boolean_t
;
typedef
struct
{
unsigned
char
__u_bits
[
16
];
}
uuid_t
;
void
uuid_create_nil
(
uuid_t
*
uuid
);
boolean_
t
uuid_is_nil
(
uuid_t
*
uuid
);
boolean_
t
uuid_equal
(
uuid_t
*
uuid1
,
uuid_t
*
uuid2
);
in
t
uuid_is_nil
(
uuid_t
*
uuid
);
in
t
uuid_equal
(
uuid_t
*
uuid1
,
uuid_t
*
uuid2
);
void
uuid_getnodeuniq
(
uuid_t
*
uuid
,
int
fsid
[
2
]);
__uint64_t
uuid_hash64
(
uuid_t
*
uuid
);
...
...
fs/xfs/xfs_types.h
View file @
659f129a
...
...
@@ -34,6 +34,8 @@
#ifdef __KERNEL__
#include <linux/types.h>
/*
* POSIX Extensions
*/
...
...
@@ -54,6 +56,9 @@ typedef unsigned int __uint32_t;
typedef
signed
long
long
int
__int64_t
;
typedef
unsigned
long
long
int
__uint64_t
;
typedef
enum
{
B_FALSE
,
B_TRUE
}
boolean_t
;
typedef
__int64_t
prid_t
;
/* project ID */
typedef
__uint32_t
inst_t
;
/* an instruction */
...
...
@@ -63,17 +68,11 @@ typedef __s64 xfs_daddr_t; /* <disk address> type */
typedef
char
*
xfs_caddr_t
;
/* <core address> type */
typedef
__u32
xfs_dev_t
;
typedef
struct
xfs_dirent
{
/* data from readdir() */
xfs_ino_t
d_ino
;
/* inode number of entry */
xfs_off_t
d_off
;
/* offset of disk directory entry */
unsigned
short
d_reclen
;
/* length of this record */
char
d_name
[
1
];
/* name of file */
}
xfs_dirent_t
;
#define DIRENTBASESIZE (((xfs_dirent_t *)0)->d_name - (char *)0)
#define DIRENTSIZE(namelen) \
((DIRENTBASESIZE + (namelen) + \
sizeof(xfs_off_t)) & ~(sizeof(xfs_off_t) - 1))
typedef
struct
timespec
timespec_t
;
typedef
struct
{
unsigned
char
__u_bits
[
16
];
}
uuid_t
;
/* __psint_t is the same size as a pointer */
#if (BITS_PER_LONG == 32)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment