diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2011-07-22 02:01:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-23 02:43:52 +0200 |
commit | 58f2a4c7932d8bec866d0394f806004146cde827 (patch) | |
tree | edbd5b8fb32005bc1b7ccc849fee23e97172ce53 /fs/sysfs/sysfs.h | |
parent | sysfs: use rb-tree for name lookups (diff) | |
download | linux-58f2a4c7932d8bec866d0394f806004146cde827.tar.xz linux-58f2a4c7932d8bec866d0394f806004146cde827.zip |
sysfs: remove s_sibling hacks
sysfs: remove s_sibling hacks
s_sibling was used for three different purposes:
1) as a linked list of entries in the directory
2) as a linked list of entries to be deleted
3) as a pointer to "struct completion"
This patch removes the hack and introduces new union u which
holds pointers for cases 2) and 3).
This change is needed for the following patch that removes s_sibling at all
and replaces it with a rb tree.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r-- | fs/sysfs/sysfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index fe1a9e8650bf..3c261681713b 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h @@ -66,6 +66,11 @@ struct sysfs_dirent { struct rb_node name_node; + union { + struct completion *completion; + struct sysfs_dirent *removed_list; + } u; + const void *s_ns; /* namespace tag */ union { struct sysfs_elem_dir s_dir; |