git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
fs
/
xfs
/
support
/
uuid.c
diff --git
a/fs/xfs/support/uuid.c
b/fs/xfs/support/uuid.c
index
a3d565a
..
e157015
100644
(file)
--- a/
fs/xfs/support/uuid.c
+++ b/
fs/xfs/support/uuid.c
@@
-21,13
+21,6
@@
static mutex_t uuid_monitor;
static int uuid_table_size;
static uuid_t *uuid_table;
static int uuid_table_size;
static uuid_t *uuid_table;
-void
-uuid_init(void)
-{
- mutex_init(&uuid_monitor);
-}
-
-
/* IRIX interpretation of an uuid_t */
typedef struct {
__be32 uu_timelow;
/* IRIX interpretation of an uuid_t */
typedef struct {
__be32 uu_timelow;
@@
-50,7
+43,7
@@
uuid_getnodeuniq(uuid_t *uuid, int fsid [2])
fsid[0] = (be16_to_cpu(uup->uu_clockseq) << 16) |
be16_to_cpu(uup->uu_timemid);
fsid[0] = (be16_to_cpu(uup->uu_clockseq) << 16) |
be16_to_cpu(uup->uu_timemid);
- fsid[1] = be
16
_to_cpu(uup->uu_timelow);
+ fsid[1] = be
32
_to_cpu(uup->uu_timelow);
}
void
}
void
@@
-139,3
+132,9
@@
uuid_table_remove(uuid_t *uuid)
ASSERT(i < uuid_table_size);
mutex_unlock(&uuid_monitor);
}
ASSERT(i < uuid_table_size);
mutex_unlock(&uuid_monitor);
}
+
+void
+uuid_init(void)
+{
+ mutex_init(&uuid_monitor);
+}