aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/protocol.h
stat options
Period:
Authors:

Commits per author per week (path 'include/net/protocol.h')

AuthorW35 2025W36 2025W37 2025W38 2025Total
Total00000
tructure' href='/cgit/cgit.cgi/litmus-rt-budgetable-locks.git/.git/commit/fs/fs-writeback.c?h=update_litmus_2019&id=c4a77a6c7dcff04a2abc7fe4b6b2ae605be41c5b'>c4a77a6c7dcf
83ba7b071f30
c4a77a6c7dcf

d46db3d58233
c4a77a6c7dcf
6e6938b6d313
52957fe1c709


c4a77a6c7dcf
8010c3b6349b
83ba7b071f30
03ba3782e8dc

455b2864686d







455b2864686d




f11b00f3bd89



03ba3782e8dc

f11b00f3bd89


81d73a32d775
f11b00f3bd89

692ebd17c290


692ebd17c290
aaead25b9548



692ebd17c290

7ccf19a8042e




6585027a5e8c

03ba3782e8dc
fff5b85aa422






03ba3782e8dc
1da177e4c3f4
6585027a5e8c











6467716a3767
1da177e4c3f4

83ba7b071f30

6585027a5e8c
1da177e4c3f4
83ba7b071f30
03ba3782e8dc
bcddc3f01c91



83ba7b071f30

455b2864686d

83ba7b071f30
455b2864686d
83ba7b071f30
bcddc3f01c91
03ba3782e8dc
83ba7b071f30


03ba3782e8dc
83ba7b071f30
b6e51316daed








25985edcedea
0e3c9a2284f5
b6e51316daed

c5444198ca21
b6e51316daed
6585027a5e8c
c5444198ca21
d3ddec7635b6
c5444198ca21




6585027a5e8c



c5444198ca21


6585027a5e8c



71927e84e0ae
6585027a5e8c


1da177e4c3f4


a66979abad09



f758eeabeb96


a66979abad09
f758eeabeb96
a66979abad09

a66979abad09
6610a0bc8dcc



66f3b8e2e103
6610a0bc8dcc


f758eeabeb96
6610a0bc8dcc
f758eeabeb96
03ba3782e8dc
66f3b8e2e103
6610a0bc8dcc
7ccf19a8042e
66f3b8e2e103
6610a0bc8dcc

7ccf19a8042e
6610a0bc8dcc


66f3b8e2e103
c986d1e2a460
f758eeabeb96
c986d1e2a460
f758eeabeb96
7ccf19a8042e
c986d1e2a460

1c0eeaf56985


a66979abad09
f758eeabeb96
1c0eeaf56985
a66979abad09
1c0eeaf56985



d2caa3c549c7







5b0830cb9085
d2caa3c549c7





c986d1e2a460
2c1365791048

e84d0a4f8e39
2c1365791048
e84d0a4f8e39
2c1365791048
5c03449d34de

cf137307cd98
5c03449d34de
cf137307cd98
e84d0a4f8e39
5c03449d34de
2c1365791048
7ccf19a8042e
2c1365791048
d2caa3c549c7
2c1365791048
cf137307cd98


7ccf19a8042e
e84d0a4f8e39
5c03449d34de

cf137307cd98


e84d0a4f8e39
cf137307cd98

5c03449d34de

7ccf19a8042e
5c03449d34de
7ccf19a8042e
5c03449d34de
7ccf19a8042e
5c03449d34de
2c1365791048
e84d0a4f8e39

2c1365791048



4ea879b96d43







2c1365791048
03ba3782e8dc
66f3b8e2e103
e84d0a4f8e39
f758eeabeb96
4ea879b96d43
e84d0a4f8e39

66f3b8e2e103

a9185b41a4f8
08d8e9749e7f
03ba3782e8dc
a9185b41a4f8
03ba3782e8dc
08d8e9749e7f
08d8e9749e7f
2c1365791048
01c031945f27

f758eeabeb96

01c031945f27




250df6ed274d

f758eeabeb96
01c031945f27
f758eeabeb96
250df6ed274d
58a9d3d8db06
01c031945f27


f758eeabeb96
0f1b1fd86f6f

01c031945f27
1da177e4c3f4




1da177e4c3f4

f758eeabeb96

1da177e4c3f4
1da177e4c3f4
251d6a471c83
01c031945f27
1da177e4c3f4

f758eeabeb96
0f1b1fd86f6f

01c031945f27







66f3b8e2e103
01c031945f27


66f3b8e2e103
01c031945f27
a9185b41a4f8
f758eeabeb96
251d6a471c83

01c031945f27





f758eeabeb96
01c031945f27

1c0eeaf56985
1da177e4c3f4
5547e8aac6f7
1c0eeaf56985
5547e8aac6f7
250df6ed274d
f758eeabeb96
1da177e4c3f4


26821ed40b42




a9185b41a4f8
26821ed40b42
1da177e4c3f4



5547e8aac6f7




250df6ed274d
5547e8aac6f7

250df6ed274d
26821ed40b42

a9185b41a4f8
1da177e4c3f4



f758eeabeb96
250df6ed274d
1c0eeaf56985
a4ffdde6e56f
94c3dcbb0b0c








23539afc7193
1da177e4c3f4

a50aeb401449
1b43ef91d401
a50aeb401449

1da177e4c3f4
a50aeb401449
1da177e4c3f4
f758eeabeb96
1da177e4c3f4

a50aeb401449




1da177e4c3f4
f758eeabeb96
1da177e4c3f4
23539afc7193






f758eeabeb96
1da177e4c3f4

9e38d86ff2d8


1da177e4c3f4
7ccf19a8042e
1da177e4c3f4

1c0eeaf56985
251d6a471c83
1da177e4c3f4


1a12d8bd7b29

d46db3d58233

















1a12d8bd7b29






d46db3d58233



03ba3782e8dc
f11c9c5c259c
edadfb10ba35

f11c9c5c259c

edadfb10ba35
d46db3d58233
f11c9c5c259c
d46db3d58233


1da177e4c3f4
d46db3d58233












03ba3782e8dc
7ccf19a8042e
edadfb10ba35

d46db3d58233
edadfb10ba35




f758eeabeb96
edadfb10ba35







d46db3d58233
edadfb10ba35

9843b76aae80




250df6ed274d
9843b76aae80
250df6ed274d
fcc5c22218a1
7ef0d7377cb2

1da177e4c3f4
1a12d8bd7b29
d46db3d58233

250df6ed274d
d46db3d58233
250df6ed274d
d46db3d58233




1da177e4c3f4



f758eeabeb96
1da177e4c3f4
0f1b1fd86f6f
f758eeabeb96
1da177e4c3f4
4ffc84442572
f758eeabeb96
d46db3d58233








8bc3be2751b4
1da177e4c3f4
d46db3d58233
f11c9c5c259c

d46db3d58233

f11c9c5c259c
d46db3d58233

38f219776631
f11c9c5c259c
7ccf19a8042e
f11c9c5c259c
9ecc2738ac23
12ad3ab66103
0e995816f4fb





edadfb10ba35
f11c9c5c259c
d46db3d58233
edadfb10ba35
f11c9c5c259c
d46db3d58233






f11c9c5c259c
66f3b8e2e103
d46db3d58233
66f3b8e2e103

d46db3d58233
edadfb10ba35
d46db3d58233




edadfb10ba35
f758eeabeb96
424b351fe190
d46db3d58233

f758eeabeb96
edadfb10ba35
d46db3d58233

03ba3782e8dc




16c4042f0891
03ba3782e8dc

4cbec4c8b9fd
03ba3782e8dc


e98be2d59920





c42843f2f0bb
e98be2d59920


03ba3782e8dc
66f3b8e2e103
03ba3782e8dc



66f3b8e2e103
03ba3782e8dc


66f3b8e2e103
03ba3782e8dc

66f3b8e2e103
c4a77a6c7dcf
83ba7b071f30
66f3b8e2e103
e98be2d59920
d46db3d58233
03ba3782e8dc
a5989bdc981e
d46db3d58233
66f3b8e2e103
e185dda89d69
d46db3d58233
38f219776631
e8dfc3058299
03ba3782e8dc

d3ddec7635b6
03ba3782e8dc
83ba7b071f30
03ba3782e8dc
66f3b8e2e103
38f219776631
aa373cf55099









d3ddec7635b6

38f219776631
83ba7b071f30
03ba3782e8dc
38f219776631
ba9aa8399fda


d46db3d58233
ba9aa8399fda
028c2dd184c0
d46db3d58233
e8dfc3058299
d46db3d58233
83ba7b071f30
d46db3d58233
edadfb10ba35
d46db3d58233

028c2dd184c0
e98be2d59920
03ba3782e8dc

e6fb6da2e106





03ba3782e8dc
d46db3d58233
71fd05a887e0

e6fb6da2e106
71fd05a887e0
b7a2441f9966
03ba3782e8dc
71fd05a887e0
71fd05a887e0



71fd05a887e0
d46db3d58233
7ccf19a8042e
250df6ed274d
f758eeabeb96
250df6ed274d
03ba3782e8dc

e8dfc3058299
03ba3782e8dc
d46db3d58233
03ba3782e8dc


83ba7b071f30
03ba3782e8dc
83ba7b071f30
08852b6d6c40
03ba3782e8dc
83ba7b071f30
03ba3782e8dc
6467716a3767
83ba7b071f30



03ba3782e8dc
6467716a3767
83ba7b071f30
03ba3782e8dc

cdf01dd5443d










6585027a5e8c
















03ba3782e8dc




69b62d01ec44





03ba3782e8dc





cdf01dd5443d
03ba3782e8dc
c4a77a6c7dcf
83ba7b071f30
c4a77a6c7dcf





83ba7b071f30
c4a77a6c7dcf
03ba3782e8dc









83ba7b071f30
c4a77a6c7dcf
03ba3782e8dc
81d73a32d775
08852b6d6c40
03ba3782e8dc

83ba7b071f30
03ba3782e8dc

83ba7b071f30
03ba3782e8dc
455b2864686d

83ba7b071f30
03ba3782e8dc

83ba7b071f30

03ba3782e8dc
83ba7b071f30



03ba3782e8dc





6585027a5e8c
81d73a32d775
03ba3782e8dc







082439004b31
03ba3782e8dc
082439004b31

03ba3782e8dc

766f9164193f
082439004b31
ecd584030da6
082439004b31





455b2864686d

03ba3782e8dc
6467716a3767





03ba3782e8dc

455b2864686d

03ba3782e8dc
ecd584030da6
03ba3782e8dc
297252c81de8
b76b4014f9d9
f9eadbbd424c
297252c81de8
03ba3782e8dc

253c34e9b10c
fff5b85aa422
253c34e9b10c





297252c81de8
f9eadbbd424c
69b62d01ec44
03ba3782e8dc


fff5b85aa422
082439004b31

455b2864686d

03ba3782e8dc


082439004b31
03ba3782e8dc
b8c2f3474f10

03ba3782e8dc
b8c2f3474f10
03ba3782e8dc
b8c2f3474f10
03ba3782e8dc
83ba7b071f30

b8c2f3474f10

03ba3782e8dc
b8c2f3474f10
cfc4ba536544
03ba3782e8dc

6585027a5e8c
03ba3782e8dc
cfc4ba536544
1da177e4c3f4

03ba3782e8dc



























1da177e4c3f4
03ba3782e8dc








1da177e4c3f4
03ba3782e8dc





1da177e4c3f4
03ba3782e8dc
1da177e4c3f4
03ba3782e8dc
253c34e9b10c
1da177e4c3f4
03ba3782e8dc





aa38572954ad
03ba3782e8dc














250df6ed274d
03ba3782e8dc










250df6ed274d
03ba3782e8dc





1d3382cbf029
250df6ed274d
03ba3782e8dc
a4ffdde6e56f
250df6ed274d
03ba3782e8dc





a66979abad09
253c34e9b10c













500b067c5e6c
03ba3782e8dc
a66979abad09
f758eeabeb96
03ba3782e8dc
7ccf19a8042e
f758eeabeb96
a66979abad09



1da177e4c3f4
1da177e4c3f4
250df6ed274d

253c34e9b10c
03ba3782e8dc









03ba3782e8dc









b6e51316daed
03ba3782e8dc






b6e51316daed
03ba3782e8dc
55fa6091d831
03ba3782e8dc







b6e51316daed
250df6ed274d
03ba3782e8dc
250df6ed274d



03ba3782e8dc
250df6ed274d
03ba3782e8dc
250df6ed274d
55fa6091d831

03ba3782e8dc
55fa6091d831





03ba3782e8dc







55fa6091d831
03ba3782e8dc
55fa6091d831
03ba3782e8dc
1da177e4c3f4

d8a8559cd7a9
3259f8bed2f0
d8a8559cd7a9
3259f8bed2f0
1da177e4c3f4
d8a8559cd7a9

3259f8bed2f0
1da177e4c3f4
3259f8bed2f0
1da177e4c3f4
83ba7b071f30

6e6938b6d313




3c4d716538f3
d8a8559cd7a9
cf37e972478e
83ba7b071f30

e913fc825dc6
3259f8bed2f0











925d169f5b86
3259f8bed2f0
0e3c9a2284f5
e913fc825dc6

17bd55d037a0








cf37e972478e
17bd55d037a0
cf37e972478e
17bd55d037a0






3259f8bed2f0




















d8a8559cd7a9



cb9ef8d5e394
d8a8559cd7a9
b6e51316daed
d8a8559cd7a9
83ba7b071f30

3c4d716538f3



83ba7b071f30
3c4d716538f3

cf37e972478e

83ba7b071f30


b6e51316daed
1da177e4c3f4
d8a8559cd7a9
1da177e4c3f4
1da177e4c3f4
7f04c26d715a





1da177e4c3f4
7f04c26d715a
1da177e4c3f4
1da177e4c3f4

f758eeabeb96
1da177e4c3f4


18914b1884eb
111ebb6e6f7b

1da177e4c3f4


49364ce25344
1da177e4c3f4

f758eeabeb96
0f1b1fd86f6f
f758eeabeb96
0f1b1fd86f6f
f758eeabeb96
1da177e4c3f4
1c0eeaf56985
1da177e4c3f4
















f758eeabeb96
1da177e4c3f4

f758eeabeb96
0f1b1fd86f6f
f758eeabeb96
0f1b1fd86f6f
f758eeabeb96
1da177e4c3f4


c37650161a53

c691b9d983d7
c37650161a53


c691b9d983d7
c37650161a53












1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383









                                                                 
                             




                                                           
                         
                           
                       


                        

                          



                              
                             
                     
 
  

                                                                        
                          

                               
                                       
                                            
                                         


                                      
 
                                                               
                                                                     

  







                                                                           




                                                                           



                                                                           

                                                                       


                                                       
                                                            

 


                                                                        
 



                                                          

 




                                                            

                                                                               
 






                                                                              
                                                                  
         











                                                          
                                      

 

                                                                  
                                        
 
                                       
 



                                                                      

                                                  

                                                    
                                                      
                 
                       
         
 


                                          
 
                                  








                                                                   
                                                                 
                                                            

   
                                                                     
 
                                                   
 
 




                                                              



                                                                    


                                                                 



                                                                         
                                             


                                      


  



                                                     


                                                           
                                         
                                        

 
  



                                                                             
                                                                           


                                                                              
                                                                       
 
                                           
                                        
                                   
 
                                                  
                                                                         

                                                      
                                                   


  
                                                                   
   
                                                                     
 
                                           
                                                     

 


                                                    
                                                
                                       
           
 



                                               







                                                                               
                                                             





                                                                  
  

                                                                     
                                                                
                                                                
                                                              
 

                                     
                                      
                            
                           
                      
 
                                             
                                                       
                                      
                                                                 
                              


                                            
                                                   
                        

         


                                                                          
                         

         

                                                      
                                              
                                                          
                                              
                                              
                                                                             
                 
         

                     



                                                       







                                                                
   
                                                                              
 
                  
                                           
                                                    

                                                                              

 
                                                                          
 
                                                                   
                                                                  
                 
 
 
  

                                              

                                                              




                                                       

                                            
                                            
                                                                          
                                          
                                          
         


  
                                                                    

                                                                            
  




                                                                            

          

                                                                     
 
                                                         
                                            
                       

                
                                           

                                           







                                                                             
                                                                             


                                                                           
                                                 
                   
                                                    
                                              

                                                                          





                                                             
                                                    

         
                                        
 
                                             
                                 
                                         
                                    
                                    


                                          




                                                                         
                                            
                                                     



                                  




                                                                      
                                  

                                                             
                                    

                                                                 
                                                  



                                  
                                  
                                  
                                  
                                            








                                                                                
                                                                   

                                                                                
                                                                      
                           

                                                        
                                  
                                                                     
                                   
                                                      

                                  




                                                                               
                                   
                                                        
                         






                                                                           
                                                

                          


                                                                            
                           
                                                         

                 
                                   
                                                              


                   

                                                                

















                                                                              






                                                               



                     
  
                                                      

                                                         

                                                          
  
                                                    
   


                                                               
 












                                                                  
                                        
                                                              

                                        
                                       




                                                                            
                                                        







                                                                       
                              

                 




                                                                              
                                          
                                                                         
                                                    
                                                

                                 
                              
                                                                  

                                              
 
                                                        
 




                                                                



                                                                         
                                                
                 
                                            
                                            
                            
                               
                                          








                                                                           
                 
         
                     

 

                                                                 
 

                                           
 
                                        
                                                              
                                                     
 
                                              





                                                                            
                                 
                 
                                                           
                               
 






                                                                               
         
                                                
                     

 
                                                                 
 




                                               
 
                                  
                                  

                                         
                                    
 

                                        




                                                      
                                                               

                                                  
                                                                        


  





                                                                
                                                                


  
                                                         
  



                                                                               
  


                                                                          
  

                                                                               
   
                                                  
                                                        
 
                                         
                                       
                                 
                            
                      
 
                             
                                            
 
                                  

                  
                                                                 
                   
                                        
                              
 
                  









                                                                      

                                                                      
                   
                                                                   
                              
 


                                                                             
                                                            
                 
 
                                                     
                                          
                                                            
                             
                                                                           
                    

                                                                   
 
                                                  

                  





                                                                            
                   
                             

                                 
                                              
                   
                                               
                              
                  



                                                            
                                                   
                                                            
                                                             
                                                  
                                                            
                                                    

                 
                                    
 
                                         


  
                                                                           
   
                                 
                                                
 
                                              
 
                                    



                                                                  
         
                                      
                    

 










                                                                    
















                                                               




                                                             





                                                       





                                                                        
                                        
 
                       
                                                 





                                                       
                                               
         









                                                              
                                       
                       
 
                                                        
                                                          

                                                                          
                                                      

                               
                                                      
 

                                                
                                                

                  

                                                                           
                   



                                             





                                                         
                                               
                                                          







                                                                         
                                    
 

                                               

                           
                                       
                        
                                  





                                                                            

                                          
                                        





                                                                               

                                                       

                                                             
                                  
                                                  
 
                                                      
                                                                            
                                                          
                                 

                 
                                                                    
                                                                                          





                                                                             
                                   
                 
 


                                
                                                       

                                         

                                         


                 
 
  

                                                                          
   
                                          
 
                                     
 

                                                             

                                                                   
 
                        
                                                           

                                           
                                                            
         
                          

 



























                                                                         
  








                                                                         
  





                                                                               
   
                                                       
 
                                             
                                            
 





                                                                  
                                                            














                                                                             
                                  










                                                                             
                                              





                                                                     
                                                  
                                                      
                 
                                               
                                              





                                                                            
                                                













                                                                            
                         
 
                                                    
                                                      
                                                      
                                                                       
                                                        



                                                               
                 
         

                                    
 









                                                                           









                                                                               
                                                  






                                                                    
                                                 
 
                                       







                                                                        
                                                              
                                                                 
 



                                                                       
                                 
                 
                              
                                            

                                                 
                  





                                                                              







                                           
                                               
         
                                         
                        

 
   
                                                                             
                      
                                    
  

                                                                             
                                     
   
                                                                     
 

                                         




                                                       
          
 
                                                 

                                         
 











                                                                             
                                                                
 
                                   

   








                                                                        
                                         
                                        
                                       






                                           




















                                                                        



                                                                      
               
   
                                           
 

                                         



                                              
                                        

          

                                                 


                                         
                           
 
                              
 
   





                                                                             
  
                                                                               
   

                                                  
                                                            


                                        
                                                               

                                       


                                                           
                                    

                      
                                  
                                  
                                                      
                                    
                                    
                 
                                       
















                                                                            
                                                            

                
                                  
                                  
                                                     
                                    
                                    


                          

   
                                               


                                   
                                                                      












                                                                            
/*
 * fs/fs-writeback.c
 *
 * Copyright (C) 2002, Linus Torvalds.
 *
 * Contains all the functions related to writing back and waiting
 * upon dirty inodes against superblocks, and writing back dirty
 * pages against inodes.  ie: data writeback.  Writeout of the
 * inode itself is not handled here.
 *
 * 10Apr2002	Andrew Morton
 *		Split out of fs/inode.c
 *		Additions for address_space-based writeback
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
#include <linux/writeback.h>
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
#include <linux/buffer_head.h>
#include <linux/tracepoint.h>
#include "internal.h"

/*
 * Passed into wb_writeback(), essentially a subset of writeback_control
 */
struct wb_writeback_work {
	long nr_pages;
	struct super_block *sb;
	unsigned long *older_than_this;
	enum writeback_sync_modes sync_mode;
	unsigned int tagged_writepages:1;
	unsigned int for_kupdate:1;
	unsigned int range_cyclic:1;
	unsigned int for_background:1;

	struct list_head list;		/* pending work list */
	struct completion *done;	/* set if the caller waits */
};

/*
 * Include the creation of the trace points after defining the
 * wb_writeback_work structure so that the definition remains local to this
 * file.
 */
#define CREATE_TRACE_POINTS
#include <trace/events/writeback.h>

/*
 * We don't actually have pdflush, but this one is exported though /proc...
 */
int nr_pdflush_threads;

/**
 * writeback_in_progress - determine whether there is writeback in progress
 * @bdi: the device's backing_dev_info structure.
 *
 * Determine whether there is writeback waiting to be handled against a
 * backing device.
 */
int writeback_in_progress(struct backing_dev_info *bdi)
{
	return test_bit(BDI_writeback_running, &bdi->state);
}

static inline struct backing_dev_info *inode_to_bdi(struct inode *inode)
{
	struct super_block *sb = inode->i_sb;

	if (strcmp(sb->s_type->name, "bdev") == 0)
		return inode->i_mapping->backing_dev_info;

	return sb->s_bdi;
}

static inline struct inode *wb_inode(struct list_head *head)
{
	return list_entry(head, struct inode, i_wb_list);
}

/* Wakeup flusher thread or forker thread to fork it. Requires bdi->wb_lock. */
static void bdi_wakeup_flusher(struct backing_dev_info *bdi)
{
	if (bdi->wb.task) {
		wake_up_process(bdi->wb.task);
	} else {
		/*
		 * The bdi thread isn't there, wake up the forker thread which
		 * will create and run it.
		 */
		wake_up_process(default_backing_dev_info.wb.task);
	}
}

static void bdi_queue_work(struct backing_dev_info *bdi,
			   struct wb_writeback_work *work)
{
	trace_writeback_queue(bdi, work);

	spin_lock_bh(&bdi->wb_lock);
	list_add_tail(&work->list, &bdi->work_list);
	if (!bdi->wb.task)
		trace_writeback_nothread(bdi, work);
	bdi_wakeup_flusher(bdi);
	spin_unlock_bh(&bdi->wb_lock);
}

static void
__bdi_start_writeback(struct backing_dev_info *bdi, long nr_pages,
		      bool range_cyclic)
{
	struct wb_writeback_work *work;

	/*
	 * This is WB_SYNC_NONE writeback, so if allocation fails just
	 * wakeup the thread for old dirty data writeback
	 */
	work = kzalloc(sizeof(*work), GFP_ATOMIC);
	if (!work) {
		if (bdi->wb.task) {
			trace_writeback_nowork(bdi);
			wake_up_process(bdi->wb.task);
		}
		return;
	}

	work->sync_mode	= WB_SYNC_NONE;
	work->nr_pages	= nr_pages;
	work->range_cyclic = range_cyclic;

	bdi_queue_work(bdi, work);
}

/**
 * bdi_start_writeback - start writeback
 * @bdi: the backing device to write from
 * @nr_pages: the number of pages to write
 *
 * Description:
 *   This does WB_SYNC_NONE opportunistic writeback. The IO is only
 *   started when this function returns, we make no guarantees on
 *   completion. Caller need not hold sb s_umount semaphore.
 *
 */
void bdi_start_writeback(struct backing_dev_info *bdi, long nr_pages)
{
	__bdi_start_writeback(bdi, nr_pages, true);
}

/**
 * bdi_start_background_writeback - start background writeback
 * @bdi: the backing device to write from
 *
 * Description:
 *   This makes sure WB_SYNC_NONE background writeback happens. When
 *   this function returns, it is only guaranteed that for given BDI
 *   some IO is happening if we are over background dirty threshold.
 *   Caller need not hold sb s_umount semaphore.
 */
void bdi_start_background_writeback(struct backing_dev_info *bdi)
{
	/*
	 * We just wake up the flusher thread. It will perform background
	 * writeback as soon as there is no other work to do.
	 */
	trace_writeback_wake_background(bdi);
	spin_lock_bh(&bdi->wb_lock);
	bdi_wakeup_flusher(bdi);
	spin_unlock_bh(&bdi->wb_lock);
}

/*
 * Remove the inode from the writeback list it is on.
 */
void inode_wb_list_del(struct inode *inode)
{
	struct backing_dev_info *bdi = inode_to_bdi(inode);

	spin_lock(&bdi->wb.list_lock);
	list_del_init(&inode->i_wb_list);
	spin_unlock(&bdi->wb.list_lock);
}

/*
 * Redirty an inode: set its when-it-was dirtied timestamp and move it to the
 * furthest end of its superblock's dirty-inode list.
 *
 * Before stamping the inode's ->dirtied_when, we check to see whether it is
 * already the most-recently-dirtied inode on the b_dirty list.  If that is
 * the case then the inode must have been redirtied while it was being written
 * out and we don't reset its dirtied_when.
 */
static void redirty_tail(struct inode *inode, struct bdi_writeback *wb)
{
	assert_spin_locked(&wb->list_lock);
	if (!list_empty(&wb->b_dirty)) {
		struct inode *tail;

		tail = wb_inode(wb->b_dirty.next);
		if (time_before(inode->dirtied_when, tail->dirtied_when))
			inode->dirtied_when = jiffies;
	}
	list_move(&inode->i_wb_list, &wb->b_dirty);
}

/*
 * requeue inode for re-scanning after bdi->b_io list is exhausted.
 */
static void requeue_io(struct inode *inode, struct bdi_writeback *wb)
{
	assert_spin_locked(&wb->list_lock);
	list_move(&inode->i_wb_list, &wb->b_more_io);
}

static void inode_sync_complete(struct inode *inode)
{
	/*
	 * Prevent speculative execution through
	 * spin_unlock(&wb->list_lock);
	 */

	smp_mb();
	wake_up_bit(&inode->i_state, __I_SYNC);
}

static bool inode_dirtied_after(struct inode *inode, unsigned long t)
{
	bool ret = time_after(inode->dirtied_when, t);
#ifndef CONFIG_64BIT
	/*
	 * For inodes being constantly redirtied, dirtied_when can get stuck.
	 * It _appears_ to be in the future, but is actually in distant past.
	 * This test is necessary to prevent such wrapped-around relative times
	 * from permanently stopping the whole bdi writeback.
	 */
	ret = ret && time_before_eq(inode->dirtied_when, jiffies);
#endif
	return ret;
}

/*
 * Move expired dirty inodes from @delaying_queue to @dispatch_queue.
 */
static int move_expired_inodes(struct list_head *delaying_queue,
			       struct list_head *dispatch_queue,
			       unsigned long *older_than_this)
{
	LIST_HEAD(tmp);
	struct list_head *pos, *node;
	struct super_block *sb = NULL;
	struct inode *inode;
	int do_sb_sort = 0;
	int moved = 0;

	while (!list_empty(delaying_queue)) {
		inode = wb_inode(delaying_queue->prev);
		if (older_than_this &&
		    inode_dirtied_after(inode, *older_than_this))
			break;
		if (sb && sb != inode->i_sb)
			do_sb_sort = 1;
		sb = inode->i_sb;
		list_move(&inode->i_wb_list, &tmp);
		moved++;
	}

	/* just one sb in list, splice to dispatch_queue and we're done */
	if (!do_sb_sort) {
		list_splice(&tmp, dispatch_queue);
		goto out;
	}

	/* Move inodes from one superblock together */
	while (!list_empty(&tmp)) {
		sb = wb_inode(tmp.prev)->i_sb;
		list_for_each_prev_safe(pos, node, &tmp) {
			inode = wb_inode(pos);
			if (inode->i_sb == sb)
				list_move(&inode->i_wb_list, dispatch_queue);
		}
	}
out:
	return moved;
}

/*
 * Queue all expired dirty inodes for io, eldest first.
 * Before
 *         newly dirtied     b_dirty    b_io    b_more_io
 *         =============>    gf         edc     BA
 * After
 *         newly dirtied     b_dirty    b_io    b_more_io
 *         =============>    g          fBAedc
 *                                           |
 *                                           +--> dequeue for IO
 */
static void queue_io(struct bdi_writeback *wb, unsigned long *older_than_this)
{
	int moved;
	assert_spin_locked(&wb->list_lock);
	list_splice_init(&wb->b_more_io, &wb->b_io);
	moved = move_expired_inodes(&wb->b_dirty, &wb->b_io, older_than_this);
	trace_writeback_queue_io(wb, older_than_this, moved);
}

static int write_inode(struct inode *inode, struct writeback_control *wbc)
{
	if (inode->i_sb->s_op->write_inode && !is_bad_inode(inode))
		return inode->i_sb->s_op->write_inode(inode, wbc);
	return 0;
}

/*
 * Wait for writeback on an inode to complete.
 */
static void inode_wait_for_writeback(struct inode *inode,
				     struct bdi_writeback *wb)
{
	DEFINE_WAIT_BIT(wq, &inode->i_state, __I_SYNC);
	wait_queue_head_t *wqh;

	wqh = bit_waitqueue(&inode->i_state, __I_SYNC);
	while (inode->i_state & I_SYNC) {
		spin_unlock(&inode->i_lock);
		spin_unlock(&wb->list_lock);
		__wait_on_bit(wqh, &wq, inode_wait, TASK_UNINTERRUPTIBLE);
		spin_lock(&wb->list_lock);
		spin_lock(&inode->i_lock);
	}
}

/*
 * Write out an inode's dirty pages.  Called under wb->list_lock and