Repository navigation
Commit f28cdf0
9p: Replace the fidlist with an IDR
The p9_idpool being used to allocate the IDs uses an IDR to allocate
the IDs ... which we then keep in a doubly-linked list, rather than in
the IDR which allocated them. We can use an IDR directly which saves
two pointers per p9_fid, and a tiny memory allocation per p9_client.
Link: http://lkml.kernel.org/r/20180711210225.19730-4-willy@infradead.org
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@sandia.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>1 parent b5303be commit f28cdf0
2 files changed
Lines changed: 19 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
131 | | - | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
| 172 | + | |
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
| |||
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
191 | | - | |
192 | 190 | | |
193 | 191 | | |
194 | 192 | | |
| |||
204 | 202 | | |
205 | 203 | | |
206 | 204 | | |
207 | | - | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
912 | | - | |
913 | 912 | | |
914 | 913 | | |
915 | 914 | | |
916 | 915 | | |
917 | 916 | | |
918 | 917 | | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | 918 | | |
925 | 919 | | |
926 | 920 | | |
927 | 921 | | |
928 | 922 | | |
929 | | - | |
930 | | - | |
931 | | - | |
| 923 | + | |
932 | 924 | | |
933 | | - | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
934 | 934 | | |
935 | | - | |
936 | 935 | | |
937 | 936 | | |
938 | 937 | | |
| |||
944 | 943 | | |
945 | 944 | | |
946 | 945 | | |
947 | | - | |
948 | 946 | | |
949 | | - | |
| 947 | + | |
950 | 948 | | |
951 | 949 | | |
952 | 950 | | |
| |||
1029 | 1027 | | |
1030 | 1028 | | |
1031 | 1029 | | |
1032 | | - | |
| 1030 | + | |
1033 | 1031 | | |
1034 | 1032 | | |
1035 | 1033 | | |
| |||
1049 | 1047 | | |
1050 | 1048 | | |
1051 | 1049 | | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | 1050 | | |
1059 | 1051 | | |
1060 | 1052 | | |
1061 | 1053 | | |
1062 | 1054 | | |
1063 | | - | |
| 1055 | + | |
1064 | 1056 | | |
1065 | 1057 | | |
1066 | 1058 | | |
| |||
1073 | 1065 | | |
1074 | 1066 | | |
1075 | 1067 | | |
1076 | | - | |
1077 | | - | |
1078 | 1068 | | |
1079 | 1069 | | |
1080 | 1070 | | |
| |||
1087 | 1077 | | |
1088 | 1078 | | |
1089 | 1079 | | |
1090 | | - | |
| 1080 | + | |
| 1081 | + | |
1091 | 1082 | | |
1092 | 1083 | | |
1093 | 1084 | | |
| |||
1096 | 1087 | | |
1097 | 1088 | | |
1098 | 1089 | | |
1099 | | - | |
| 1090 | + | |
1100 | 1091 | | |
1101 | 1092 | | |
1102 | 1093 | | |
1103 | 1094 | | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | 1095 | | |
1108 | 1096 | | |
1109 | 1097 | | |
| |||
0 commit comments