Commit 3f3439cd authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

headers: Move fh_t to fsnotify.c

We really don't need it spread over all headers. The file
handlers are used in fsnotify only, declare it there.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3c8a8326
...@@ -152,13 +152,6 @@ enum kcmp_type { ...@@ -152,13 +152,6 @@ enum kcmp_type {
KCMP_TYPES, KCMP_TYPES,
}; };
/* File handle */
typedef struct {
u32 bytes;
u32 type;
u64 __handle[16];
} fh_t;
#ifndef MAP_HUGETLB #ifndef MAP_HUGETLB
# define MAP_HUGETLB 0x40000 # define MAP_HUGETLB 0x40000
#endif #endif
......
...@@ -176,13 +176,6 @@ enum kcmp_type { ...@@ -176,13 +176,6 @@ enum kcmp_type {
KCMP_TYPES, KCMP_TYPES,
}; };
/* File handle */
typedef struct {
u32 bytes;
u32 type;
u64 __handle[16];
} fh_t;
#ifndef MAP_HUGETLB #ifndef MAP_HUGETLB
# define MAP_HUGETLB 0x40000 # define MAP_HUGETLB 0x40000
#endif #endif
......
...@@ -62,6 +62,13 @@ struct fsnotify_file_info { ...@@ -62,6 +62,13 @@ struct fsnotify_file_info {
struct file_desc d; struct file_desc d;
}; };
/* File handle */
typedef struct {
u32 bytes;
u32 type;
u64 __handle[16];
} fh_t;
static LIST_HEAD(inotify_info_head); static LIST_HEAD(inotify_info_head);
static LIST_HEAD(fanotify_info_head); static LIST_HEAD(fanotify_info_head);
......
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