Commit 308f6150 authored by Pavel Emelyanov's avatar Pavel Emelyanov

file-ids: Fix collect genid type

It is u32 and that is it :\
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ed67491c
......@@ -130,7 +130,7 @@ static int dump_one_reg_file(const struct fd_parms *p, int lfd,
if (likely(!fd_is_special(&e))) {
u64 id;
id = fd_id_entry_collect((u32)p->id, p->pid, p->fd_name);
id = fd_id_entry_collect(p->id, p->pid, p->fd_name);
if (id < 0)
goto err;
......
......@@ -191,7 +191,7 @@ err:
return sub;
}
static struct fd_id_entry *lookup_alloc_node(u64 genid, pid_t pid, int fd)
static struct fd_id_entry *lookup_alloc_node(u32 genid, pid_t pid, int fd)
{
struct rb_node *node = fd_id_root.rb_node;
struct fd_id_entry *e = NULL;
......@@ -221,7 +221,7 @@ err:
}
long fd_id_entry_collect(u64 genid, pid_t pid, int fd)
long fd_id_entry_collect(u32 genid, pid_t pid, int fd)
{
struct fd_id_entry *e = NULL;
......
......@@ -11,7 +11,7 @@
#define MAKE_FD_GENID(dev, ino, pos) \
(((u32)(dev) ^ (u32)(ino) ^ (u32)(pos)))
extern long fd_id_entry_collect(u64 genid, pid_t pid, int fd);
extern long fd_id_entry_collect(u32 genid, pid_t pid, int fd);
extern void fd_id_show_tree(void);
#endif /* FILE_IDS_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment