aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2012-12-05 11:43:05 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-06 06:20:28 -0500
commita26860bdbd632278bbbcc2261b4c28f965472741 (patch)
treec57c8d50758905abbdd5120811f3088ae45980a7 /tools/perf/scripts/python/bin
parent12861dc659c7181e0b52facd97df70c6dd326106 (diff)
[media] s5p-fimc: Fix return value of __fimc_md_create_flite_source_links()
Make sure 'ret' is not used uninitialized. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
500 committer Linus Torvalds <torvalds@linux-foundation.org> 2009-02-18 18:37:53 -0500 vfs: separate FMODE_PREAD/FMODE_PWRITE into separate flags' href='/cgit/cgit.cgi/litmus-rt-imx6.git/commit/include/linux/fs.h?id=55ec82176eca52e4e0530a82a0eb59160a1a95a1'>55ec82176eca
fc9161e54d0d
19adf9c5d579
fc9161e54d0d
19adf9c5d579
fc9161e54d0d
19adf9c5d579
55ec82176eca
19adf9c5d579
55ec82176eca
19adf9c5d579
fc9161e54d0d
19adf9c5d579
fc9161e54d0d
19adf9c5d579
fc9161e54d0d
19adf9c5d579
fc9161e54d0d

19adf9c5d579
b500531e6f5f
4d4be482a4d7





19adf9c5d579
4d4be482a4d7
0141450f66c3
19adf9c5d579
0141450f66c3
4a3956c79029


1abf0c718f15


ecf081d1a73b
13bcbc008790
ecf081d1a73b
48e70bc18ac8


























7cc015811ef8
48e70bc18ac8

721a9602e660
48e70bc18ac8
721a9602e660

4fed947cb311





48e70bc18ac8

7cc015811ef8

7b6d91daee5c

7cc015811ef8

7b6d91daee5c
721a9602e660
721a9602e660

721a9602e660


1da177e4c3f4







79c0b2df79eb
1da177e4c3f4
349457ccf259



1da177e4c3f4















9b04c997b112


bf066c7db775
9676f0c6389b
07b20889e305
a58b0eb8e64b
03e06e68ff76
47ae32d6a549
8bf9725c29f2
7a224228ed79
d0adde574b84
9e1f1de02c22
7a4dec53897e
1da177e4c3f4





08b9fe6b12d3
1da177e4c3f4


















196f518128d2
9875cf806403
69b457329646
1da177e4c3f4





















37756ced1f14
7a224228ed79
1da177e4c3f4



1da177e4c3f4





196f518128d2
9875cf806403
69b457329646
1da177e4c3f4





























2056a782f8e7



d30a2605be9d
ac481c20ef8f



98262f2762f0
8d57a98ccd0b
1da177e4c3f4



fcccf502540e

367a51a33902
1da177e4c3f4
36695673b012



c4b929b85bdb
36695673b012




























128e5ebaf8ab

32471f6e1983
36695673b012





e46e490368f8



1da177e4c3f4



1da177e4c3f4

3f8206d496e9
1da177e4c3f4

1da177e4c3f4



914e26379dec
1b1dcc1b57a4
3bd858ab1c45
6188e10d38b8
c4b929b85bdb
ceb5bdc2d246
07b8ce1ee87d
83aeeada7c69
1da177e4c3f4
1da177e4c3f4

a56942551225
a885c8c4316e
1da177e4c3f4

92198f7eaa5d
57cc7215b708
1da177e4c3f4




745ca2475a6a
1da177e4c3f4
74bf17cffc32
1da177e4c3f4
1da177e4c3f4

dded4f4d5048
518de9b39e85
dded4f4d5048


dded4f4d5048
1da177e4c3f4


92198f7eaa5d
40e2e97316af

1da177e4c3f4




9767d7495745
















1da177e4c3f4


















cc4e69dee4a0

25985edcedea
cc4e69dee4a0



1da177e4c3f4


1da177e4c3f4



994fc28c7b1e

















55144768e100
994fc28c7b1e











afddba49d18f
89e107877b65
54566b2c1594


afddba49d18f
1da177e4c3f4





1da177e4c3f4
2f718ffc16c4











afddba49d18f
2f718ffc16c4


















8ab22b9abb5c




















2f718ffc16c4
1da177e4c3f4


1da177e4c3f4



4741c9fd36b3
1da177e4c3f4




afddba49d18f






1da177e4c3f4

2ff28e22bdb8
27496a8c67be
6072d13c4293
1da177e4c3f4

70688e4dd164

b969c4ab9f18



2d1db3b1170d
b969c4ab9f18
e3db7691e9f3
8ab22b9abb5c

257187362123
1da177e4c3f4

7dcda1c96d7c

afddba49d18f











1da177e4c3f4



19fd6231279b
1da177e4c3f4


3d48ae45e723
08142579b6ca
1da177e4c3f4

f5e54d6e53a2
1da177e4c3f4







25985edcedea
1da177e4c3f4




f3ccfcdaf398
1da177e4c3f4
87d8fe1ee6b8
c039e3134ae6
1da177e4c3f4
6b4517a7913a
1da177e4c3f4

77ea887e433a
641dc636b047
49731baa41df
641dc636b047
1da177e4c3f4







1da177e4c3f4






fcccf502540e




1da177e4c3f4







f446daaea9d4
1da177e4c3f4

































f19d4a8fa6f9


3ddcd0569cd6








1da177e4c3f4
44a7d7a878c9
3ddcd0569cd6
44a7d7a878c9

3ddcd0569cd6






44a7d7a878c9

3ddcd0569cd6
44a7d7a878c9
13e12d14e2dc


44a7d7a878c9
3ddcd0569cd6

a78ef704a8dd










3ddcd0569cd6
3ddcd0569cd6


6cdbb0effc2f

3ddcd0569cd6
6cdbb0effc2f
3ddcd0569cd6






3ddcd0569cd6
13e12d14e2dc
44a7d7a878c9

1da177e4c3f4
7ccf19a8042e

1da177e4c3f4
fa0d7e3de6d6



1da177e4c3f4
6cdbb0effc2f
7a224228ed79
bd5fe6c5eb9c
6cdbb0effc2f
99ac48f54a91
1da177e4c3f4
1da177e4c3f4



1da177e4c3f4
4c1541680f8d

eaf796e7ef60
577c4eb09d10
4c1541680f8d
1da177e4c3f4


3be25f49b9d6

e61ce86737b4
0eeca28300df

a178d2027d31
a68a27b6f235
a178d2027d31
8e18e2941c53
1da177e4c3f4

1d3382cbf029




1da177e4c3f4
f2eace23e924







4df46240a131
f2eace23e924





4df46240a131
f2eace23e924



1da177e4c3f4








48ed214d10ae
1da177e4c3f4





















7762f5a0b709




1da177e4c3f4














48ed214d10ae
1da177e4c3f4



48ed214d10ae
1da177e4c3f4







609d7fa9565c

1da177e4c3f4
1da177e4c3f4






937085aa35cc


f9acc8c7b35a
5ce1110b92b3
937085aa35cc
1ebf26a9b338
f4e6b498d6e0
1da177e4c3f4
1da177e4c3f4
5ce1110b92b3
5ce1110b92b3



f9acc8c7b35a

5ce1110b92b3

ad775f5a8faa


1da177e4c3f4
2f51201662b2







0f7fc9e4d039


99ac48f54a91
ef3d0fd27e90





6416ccb78999


516e0cc5646f
1da177e4c3f4
aeb5d727062a
1da177e4c3f4

d76b0d9b2d87
1da177e4c3f4

2b47c3611de0
50462062a022
1da177e4c3f4
50462062a022
1da177e4c3f4





28d82dc1c4ed
1da177e4c3f4

ad775f5a8faa


1da177e4c3f4
1da177e4c3f4
990d6c2d7aee






516e0cc5646f
d7065da03822
516e0cc5646f
1da177e4c3f4
ad775f5a8faa










































1da177e4c3f4












f475ae957db6
1da177e4c3f4
75e1fcc0b18d
1da177e4c3f4
778fc546f749

1da177e4c3f4

bde74e4bc644





1da177e4c3f4








1da177e4c3f4




8fb47a4fbf85





1da177e4c3f4

af558e33beda







1da177e4c3f4







710b7216964d
afc1246f917c
1da177e4c3f4
ab1f16116527
1da177e4c3f4

1da177e4c3f4



778fc546f749


1da177e4c3f4
6aed62853c72
7b021967c5e1
1da177e4c3f4

8d0a8a9d0ec7
e8d6c554126b



1da177e4c3f4









1da177e4c3f4

bfcd17a6c552

bfcd17a6c552
1da177e4c3f4
c293621bbf67

1da177e4c3f4


c293621bbf67

1da177e4c3f4

1da177e4c3f4



05fa3135fdc7
1da177e4c3f4
c5b1f0d92c36
1da177e4c3f4
1a747ee0cc11
1da177e4c3f4

a9e61e25f9d2
6d34ac199a4a
150b393456e5
1da177e4c3f4
64a318ee2af9
3ee17abd14c7
150b393456e5
9b9d2ab4154a
1da177e4c3f4


0af1a4504699
a9933cea7a1d
1da177e4c3f4


b89f43213385

bfcd17a6c552
c2aca5e529a2










bfcd17a6c552
c2aca5e529a2









bfcd17a6c552
c2aca5e529a2





















































































































b89f43213385







bfcd17a6c552

1da177e4c3f4

989a2979205d





1da177e4c3f4





f7347ce4ee7c




1da177e4c3f4

1da177e4c3f4
609d7fa9565c
1da177e4c3f4

609d7fa9565c
1da177e4c3f4








db1f05bb85d7

1da177e4c3f4



1da177e4c3f4


1da177e4c3f4
270ba5f7c5da

42cb56ae2ab6
1da177e4c3f4
ee9b6d61a2a4
61e225dc3411
0d54b217a247
396551644059
1da177e4c3f4



7892f2f48d16
1da177e4c3f4
1da177e4c3f4
50462062a022
1da177e4c3f4
50462062a022
bb4354538eb7
1da177e4c3f4

ceb5bdc2d246
6416ccb78999


1da177e4c3f4
6416ccb78999
39f7c4db1d2d
b5c84bf6f6fa
da3bbdd4632c

1da177e4c3f4
09cc9fc7a7c3

98b745c647a5


1da177e4c3f4
32a88aa1b6df
acaebfd8a7af
a5166169f9b9
1da177e4c3f4





0bba01695b74
1da177e4c3f4

30c40d2c01f6
1da177e4c3f4
270ba5f7c5da



1da177e4c3f4



a11f3a0574a5
1da177e4c3f4
79c0b2df79eb




b3b304a23a8f




4d2deb40b20c
c8aebb0c9f8c
9fdfdcf17151




b0d40c92adaf

4ed5e82fe77f
7ada4db88634


4ed5e82fe77f

1da177e4c3f4

b0d40c92adaf



1da177e4c3f4













e795b71799ff





2e1496707560
3bd858ab1c45
914e26379dec


1da177e4c3f4



4acdaf27ebe2
18bb1db3e760
1a67aafb5f72
db2e747b1499
1da177e4c3f4










8c744fb83da0

a1bd120d13e5
62bb10917037
8c744fb83da0
c4b929b85bdb





ecf5632dd189

c4b929b85bdb





1da177e4c3f4














1da177e4c3f4





afefdbb28a0a
08f858512151
1da177e4c3f4
1da177e4c3f4





1da177e4c3f4



1da177e4c3f4
027445c37282

1da177e4c3f4

1da177e4c3f4



75e1fcc0b18d
1da177e4c3f4
02c24a82187d
1da177e4c3f4


1da177e4c3f4


1da177e4c3f4
cbb7e577e732

f9ffed26d6f3
2fe17c107583

1da177e4c3f4


1da177e4c3f4
44a7d7a878c9
10556cb21a0d
4e34e719e457
44a7d7a878c9



4acdaf27ebe2
1da177e4c3f4


18bb1db3e760
1da177e4c3f4
1a67aafb5f72
1da177e4c3f4

1da177e4c3f4
1da177e4c3f4





f6b3ec238d12
c4b929b85bdb

44a7d7a878c9
1da177e4c3f4


eed4e51fb60c
fcf634098c00



eed4e51fb60c
1da177e4c3f4






1da177e4c3f4



aa38572954ad
a9185b41a4f8
45321ac54316
be7ce4161f9e
1da177e4c3f4


c4be0c1dc4cd

726c33422318
1da177e4c3f4
42faad99658e
1da177e4c3f4
34c80b1d93e6
d861c630e99f
a6322de67b58
64132379d509
0e51a720b9d9
1da177e4c3f4

0e51a720b9d9
87d8fe1ee6b8
0e1fdafd9398

1da177e4c3f4

1c0eeaf56985
250df6ed274d
1c0eeaf56985







eaff8079d4f1
1c0eeaf56985
e7ca2d41a029

000cb48ee181



1c0eeaf56985
eaff8079d4f1







1c0eeaf56985





b57922d97fd6
a4ffdde6e56f
1c0eeaf56985




eaff8079d4f1
1c0eeaf56985
eaff8079d4f1


1c0eeaf56985
bd5fe6c5eb9c



1c0eeaf56985
1c0eeaf56985
9e38d86ff2d8


eaff8079d4f1

9e38d86ff2d8


eaff8079d4f1
1c0eeaf56985
9e38d86ff2d8
bd5fe6c5eb9c

1da177e4c3f4













7ada4db88634



d8c76e6f45c1



66d2173053f6


9a53c3a783c2


66d2173053f6


25ec56b51825














869243a0f614
1da177e4c3f4


0f7fc9e4d039
1da177e4c3f4


c37650161a53
1da177e4c3f4
1da177e4c3f4


c96e41e92b4a

1da177e4c3f4


a5166169f9b9
d475fd428ce7
cf51624999e5
897c6ff9568b
51ee049e771c
d475fd428ce7


14358e6ddaed
1da177e4c3f4

ceefda693180

152a08366671


fc14f2fef682


3c26ff6e499e


ea441d1104cf
1da177e4c3f4




74dbbdd7fdc1
1da177e4c3f4
0ee5dc676a5f

1da177e4c3f4



51139adac92f
c74a1cbb3cac


1da177e4c3f4
140236b4b1c7












1da177e4c3f4







8bf9725c29f2

423e0ab086ad
1da177e4c3f4


589ff870ed60
8aec08094570
1f707137b557

ebabe9a9001a
c8b91accfa10

cf31e70d6cf9
18e9e5104fcd

02125a826459
1da177e4c3f4
ce3b0f8d5c22

f87fd4c2a0c4
00d266662336
f87fd4c2a0c4
435f49a518c7
bfcd17a6c552

1da177e4c3f4


bfcd17a6c552
1da177e4c3f4






a16877ca9cec














1da177e4c3f4


a16877ca9cec
1da177e4c3f4



1da177e4c3f4



a16877ca9cec
1da177e4c3f4














bfcd17a6c552
af5df56688ac





































bfcd17a6c552
1da177e4c3f4


4a30131e7dbb

3e63cbb1efca

8e8a1407ac23
a218d0fdc5f9

73d049a40fc6

745ca2475a6a

1da177e4c3f4


3e63cbb1efca



1da177e4c3f4



b86c089b83b8

3446a8aa7ebc


1da177e4c3f4





9361401eb761
1da177e4c3f4
f4480240f700
1da177e4c3f4
dddac6a7b445
1da177e4c3f4


585d3bc06f4c

ff01bb483265
585d3bc06f4c
c2d754385184
585d3bc06f4c

9361401eb761

47e4491b40df
ff01bb483265
47e4491b40df










9361401eb761
60b0680fa236
9361401eb761
4b6f5d20b04d


9361401eb761
1da177e4c3f4
56b26add02b4
1da177e4c3f4
e525fd89d380
d4d77629953e



e525fd89d380
641dc636b047
e09b457bdb7e
49731baa41df

641dc636b047
e09b457bdb7e




49731baa41df



641dc636b047
9361401eb761
1da177e4c3f4

68eef3b47915
1da177e4c3f4

1905b1bfc0de




1da177e4c3f4
68eef3b47915
1da177e4c3f4
1905b1bfc0de










1da177e4c3f4

1f0142905d48
9361401eb761


1da177e4c3f4


68eef3b47915
30c40d2c01f6
9361401eb761


1da177e4c3f4






d2d9648ec685


1da177e4c3f4
9361401eb761
1da177e4c3f4









c3279d1454cd

0c002c2f74e1
1da177e4c3f4
93b270f76e7e
1da177e4c3f4
9361401eb761
1da177e4c3f4

54bc485522af
1da177e4c3f4



fc0ecff69816
1da177e4c3f4







d3bccb6f4b88

1da177e4c3f4


ebcf28e1c7a2

f4c0a0fdfae7

ebcf28e1c7a2
8018ab057480


148f948ba877
1da177e4c3f4
1da177e4c3f4

9361401eb761
1da177e4c3f4
9361401eb761
1da177e4c3f4
f419a2e3b64d
2830ba7f34eb
1da177e4c3f4
f696a3659fc4




07b8ce1ee87d
























1da177e4c3f4






0f7fc9e4d039
1da177e4c3f4
a5c96ebf1d71



















ed8cae8ba013
be61a86d7237

d6cbd281d189
1da177e4c3f4
6777d773a463
1da177e4c3f4



2096f759abcb
1da177e4c3f4








54e346215e4f
1da177e4c3f4
2aa15890f3c1
7de9c6ee3ecf
1da177e4c3f4



45321ac54316

1da177e4c3f4
88bd5121d635


1da177e4c3f4





261bca86ed4f

e096d0c7e2e4




1da177e4c3f4
85fe4025c616
1da177e4c3f4
1da177e4c3f4
b46980feed93
b0683aa638b3
2e00c97e2c1d
a209dfc7b0d9

ff0c7d15f978
01de85e05732
2f1936b87783
1da177e4c3f4

646ec4615cd0

1da177e4c3f4

f2ee7abf4c40







646ec4615cd0
1da177e4c3f4
9361401eb761
1da177e4c3f4

9361401eb761
1da177e4c3f4






1da177e4c3f4
027445c37282
e4dd9de3c66b

027445c37282
1da177e4c3f4





0ceb331433e8

88e6faefaeed
eef99380679e


02c24a82187d

ff01bb483265
eef99380679e
88e6faefaeed
cbb7e577e732
88e6faefaeed
6818173bd658

88e6faefaeed
cbb7e577e732
88e6faefaeed
cbb7e577e732

88e6faefaeed

1da177e4c3f4

ae6afc3f5cf5
1da177e4c3f4

5760495a872d

1da177e4c3f4


ceffc078528b
eb6fe0c388e4

ceffc078528b
eb6fe0c388e4

ceffc078528b
6d79125bba55




ceffc078528b

9361401eb761
facd07b07d2a

1da177e4c3f4

1e431f5ce78f




1da177e4c3f4

eafdc7d190a9
bd5fe6c5eb9c

eafdc7d190a9




7bb46a6734a7
1da177e4c3f4
aacfc19c626e

1da177e4c3f4
aacfc19c626e

1e431f5ce78f
1da177e4c3f4
ed70afcd6e79



9361401eb761
1da177e4c3f4
4b6f5d20b04d
1da177e4c3f4





cc314eef0128

0adb25d2e71a
54566b2c1594
1da177e4c3f4
c5ef1c42c51b
1da177e4c3f4


b462707e7cca
1da177e4c3f4






c7887325230a

1da177e4c3f4
c7887325230a
1da177e4c3f4
deb21db7788b

e9079cce2017
3a3076f4d6e2


68c9d702bb72


1da177e4c3f4
c18479fe017b

1da177e4c3f4

4504230a7156
1da177e4c3f4
01a05b337a5b
43e15cdbefea

1da177e4c3f4




7bb46a6734a7
1da177e4c3f4
726c33422318
1da177e4c3f4



02c24a82187d
1da177e4c3f4

afddba49d18f





1da177e4c3f4


4b6f5d20b04d
c5ef1c42c51b
4b6f5d20b04d
1da177e4c3f4
7d683a09990f
1f5ce9e93aa9
1da177e4c3f4

93b071139a95

6a727b43be8b

1da177e4c3f4
02c24a82187d
d5aacad548db
30ca22c70e3e

e965f9630c65
2d1db3b1170d
b969c4ab9f18
e965f9630c65



25d9e2d15286

6a1a90ad1b0e
1da177e4c3f4
870f481793b5
1da177e4c3f4
34c80b1d93e6
b3b304a23a8f
2a32cebd6cbc
b3b304a23a8f
1da177e4c3f4



b5c84bf6f6fa



1da177e4c3f4





1da177e4c3f4


















76791ab2d5e0
1da177e4c3f4
acaefc25d21f





















828c09509b96
acaefc25d21f

74bedc4d5621
acaefc25d21f

1ec5584e3edf
acaefc25d21f

b9075fa968a0

acaefc25d21f




8b88b0998e35
acaefc25d21f
74bedc4d5621
acaefc25d21f




4be28540ee2f
8d65af789f3e
62239ac2b301
312d3ca856d3

cffbc8aa334f

38e23c95f92a
62239ac2b301
3cd90ea42f2c
1a44bc8c7cfe

6d125529c6cb
ecf081d1a73b
1a44bc8c7cfe
5300990c0370
8d334acdd2c1
69b457329646





9e1f1de02c22
69b457329646


1da177e4c3f4

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
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667







                                                          

                         
                            
                        












                                                                       

                                                                       



                                       


                                                                            


                                                           
 
                     


                     

  

                                                  


                                                             
  



                      
                                                                          
  
 


                                                                        








                                          
 




                                                                              
                              
                                                      
                              
                                                      
                      
                                                      
                                      
                                                      
                                       
                                                       
                                                               
                                                       
                                                               
                                                       
                                                             
                                                       

                                                                        
                                                        
 





                                                                             
                                                        
 
                                  
                                                         
 


                                                            


                                                                    
                                                                        
                                                            
 


























                                                                               
                                                                           

                                                                     
                                                                              
                                                                        

                                                                   





                                                                              

   

                                          

                                 

                                        
 
                                                 

                                                               


                                                                                     







                                       
                        
                                                                             



                                                                      















                                                                             


                                                                      
                                                                  
                                                          
                                                       
                                                     
                                                      
                                                                           
                                                               
                                                                  
                                                                  
                               
                               





                                                     
                                                                           


















                                                                             
                                                                        
                                                                        
                                                                          





















                                                                                
                                                                 
                                                           



                                                                





                                                               
                                                          
                                                                
                                                            





























                                                                                            



                                                                 
                                



                                 
                                      
                                   



                                                                       

                                                            
                                                                          
 



                                                          
                                                                     




























                                                                                             

                                                                       
                                                                        





                                                                              



                                         



                          

                         
                       

                        



                             
                      
                        
                             
                            
                         
                             
                         
                           
 

                          
                         
                   

                 
             
               




                         
            
 
                                    
                                          

                                             
                                           
                                         


                                           
 


                                                                   
                                                              

                                                              




                                                                      
















                                                                     


















                                                                          

          
                                                                             



                                                                           


  



                           

















                                                                               
                                      











                                                                               
                                                                              
                                                                            


                                                                               
 





                                          
 











                                                                        
                                                                 


















                                                                       




















                                                               
 


                                                                           



                                                                              
                                                               




                                                                          






                                                                          

                                                                          
                                                              
                                                  
                                        

                                                                          

                                                                          



                                                                          
                                                   
                                                            
                                            

                                                                         
                                                                        

  

                                                        











                                                                          



                                                                                
                                                                            


                                                                                         
                                                                               
                                                                 

                                                                           
                                                                     







                                                                                  
                                                                           




                                                                               
                                           
                                                              
                                         
                                                                      
                                          
                                            

                                           
                                                
                   
                                                
      







                                                                             






                                                                      




                                                  







                                                                              
                                 

































                                                                         


                                     








                                                               
              
                                       
                                          

                                      






                                               

                                              
                                           
 


                                            
 

                                                       










                                                                          
                                       


                                        

                                                                             
                                         
                                       






                                                
                                        
 

                                                                               
                                       

                                                                         
                                          



                                                 
                                        
                                          
                                          
                                            
                                             
                                                                                     
                                         



                                                    
                                          

                                                
                                                
                                                
          


                                             

                                                                                        
                                                 

      
                 
                                                                       
      
                                                                              

  




                                                     
  







                                                            
                                              





                             
                      



                     








                                                                       
                                                           





















                                                                    




                                                                             














                                                                   
                                                        



                                    
                                                        







                                                                    

                                                                                   
                                                                           






                                                                              


                                                                         
                                                                             
 
                                                                      
                                                                               
                                                                        
  
 
  



                                                                       

                                               

 


                                 
             







                                                                           


                                       
                                              





                                                                           


                                              
                                        
                                        
                                       

                                        
                                        

                                     
                                          
                      
                                            
      





                                                                       
                                              

                                           


                                        
  
 






                                  
                                                      
                                                                    
                                                       
 










































                                                                 












                                                                                
                                                                        
                                                             
                                                     
                                                     

                                                                   

  





                                                                      








                                                




                                                                     





                                                                        

  







                                              







                                                                                
                              
                              
                            
                             

                                  



                                                                              


                                        
 
                                                                                       
                                                                                        

                                               
                                                



                                                                                            









                                                                               

                        

                                                                   
                          
                                                             

                                                                 


                                                                 

                                                                   

      



                                                                        
                                           
                                                
                                                 
                                                                    
                                                                            

                                                          
                                                      
                                                               
                                                                                  
                                                                   
                                                                 
                                                            
                                                                                              
                                                                    


                                                                         
                                                                      
                                                                  


                                                                             

                                
                                










                                                                           
                       









                                                                               
      





















































































































                                                                                 







                                      

                                 

                      





                                                                  





                                                                           




                                                                                                                      

                                                           
 
                                                                                 

                                                                     
                                         








                                                                         

                                                                            



                                     


                                                                                
                                       

                                                 
                                                                   
                                        
                                              
                                               
                                                
                                                    



                                         
                                       
                                        
                                         
                      
                                            
      
                                             

                                                                
                                                                                            


                                           
                                        
      
                                                                                      
                                                                              

                                                                                
 

                                                                              


                                                                                
                                        
                                       
                                       
                                            





                                                                                
                                                          

                                                                             
                                       
 



                                           



                                                                             
                                                            
 




                                                                      




                                                         
                              
                                                                               




                                                               

                                                                    
 


                                                                   

                                       

  



                                                                    













                                                                     





                                                                   
                                                              
 


                                               



                         
                                                                                    
                                                               
                                                                      
                                                                      










                                                                                        

                             
                                                                          
                                      
  





                                                                         

                                                                              





                                                                         














                                                





                                                                  
                                                                           
                               
 





                                                          



                                                                         
                                                                                

                                                                                           

                                                                         



                                                                            
                                                    
                                                       
                                                                   


                                                             


                                                                                                                      
                                                              

                                                                                                         
                                                                  

                                                                     


                         
                                                                                       
                                                                    
                                                
                                                           



                                                                       
                                                                                  


                                                                     
                                                              
                                                      
                                                                    

                                                         
                                          





                                                                                
                                                               

                                                                             
                        


                
                                                                            



                                                                             
 






                                                                               



                                                             
                                                        
                                                                           
                                           
                                             


                                                         

                                                  
                                                          
                                                                
                                                    
 
                                                                
                                                                
                                                             
                                                              
                   

                                                                                        
      
                                                                               

                                                               

  
  
                                                







                                                                             
                                                                               
  

                                                                         



                                                                             
                                                                          







                                                                               





                                                                               
                                                                                   
                                                                     




                                                                             
                                                                   
  


                                                                            
  



                                                                               
                                                               
   


                                        

                                              


                                        
                                 
                                               
                                        

                                                   













                                                                 



                                                               



                                                            


                                


                                                            


                                














                                                                             
                                                                     


                                                   
                                                                   


                                                                   
                                                       
 


                         

                                                                


                                               
                                    
 
                                         
                                           
                                               


                                          
                                              

  

                                                                           


                                                                  


                                                                    


                                                                   
                                                                            




                                                    
                                                     
                                                      

                           



                                                                 
                                                                     


                                             
 












                                                        







                                                                         

                                                                               
                                               


                                                                    
                                                      
                                                     

                                                                     
                                                       

                                                              
                                              

                                                   
                                          
 

                               
             
                               
 
                                                

                                                                


                            
                          






                                                                                    














                                                                


                                                          
                                  



                                                     



                                                            
                                                    














                                                                     
                                





































                                                                               
                                


               

                                                                              

                                                                   
                                                                        

                                                          

                                                                      

                                                                         


                                                    



                                                                   



                                                  

                                       


                                                                             





                                       
                   
                                                       
                                                          
                                         
                                                              


                                                            

                                                    
                                             
                                                              
                                     

                                                                        

                                                    
                                                                        
                                                          










                                                                              
      
                                                 
                                                 


                                                  
                   
                                                                         
                                                                                 
                                                                        
                                                                             



                                                                              
                                                               
                   
                                                                                

                                                            
     




                                                                



                                                                   
      
      

                   
                                   

                                                                          




                                                                           
                                                      
                                                 
 










                                                                          

                                                                              
                                                                           


                                   


                                                                     
                                                 
 


                                 






                                                               


                                                        
 
                   









                                                                     

                                                              
                                             
                                                    
                                                            
                                                       
      

                                                                     
 



                                                               
                                                                  







                                                                       

                                                                         


                                                                      

                                                                         

                                                                  
 


                                                                       
                                                                           
                              

                                    
                   
                                               
      
                                                          
                                                 
                                                   
 




                                                                   
























                                                                               






                                                         
                                                                        
 



















                                                       
                                     

                                                                
                                           
 
                                                                     



                                                       
                                                       








                                                                           
                                                                   
                                            
                                                                   
                                        



                                                  

                                                     
 


                                                                           





                                                                                                                                                         

                                                                                                            




                                                                             
                                             
                                       
 
                                         
                                        
                                          
                                            

                                                              
                                                   
                                               
                                           

                                                                       

                                                         

                                                 







                                                         
                                                   
 
                   

                                                 
      






                                                                                                                  
                                                                                   
                                                                                                  

                                                                                            
                                                                                                   





                                                                                                  

                                                                         
 


                                                                            

                                                                    
                                               
 
                 
                                                                
                                                                

                                                                
                                                                  
                                                               
                                                                    

                                                                             

                                                

                                                                            
                                                                        

                                                                                

                                                                        


                                                                       
                    

                                                                             
                                                                          

                                                                        
                                                                         




                                                                               

      
                   

                                                                         

      




                                                             

  
                                            

                                         




                                                                             
 
                                                                    

                                                                            
 

                                                                              
                                                                  
 



                                                      
      
 
                                                    





                                                                           

                                                                         
                                                                            
                          
                                                                           
                                                                   


                                                                           
                                                          






                                                         

                                                          
                                                   
                                                                       
 

                                                                             
                                                      


                                                                     


                                                                              
 

                                                        

                                                              
                                                                       
                                               
                                                                           

                                                                                




                                                            
                                                           
                                                                              
                                                            



                                                                                           
                                                          

                                                                 





                                                                               


                                                                                         
                                                          
                                                                 
                                                                               
                                                           
                                                                                       
                                                                                         

                                                                   

                                                                          

                                                                               
 
                                                                  
 

                                                    
                       
                                                      
                                                                    



                                

                                                                 
                                                                        
 
                                                
 
                                                                         
                                                                      
                                                                         
 



                                                     



                                                                          





                                               


















                                                                                        
                                                         
 





















                                                                           
                                                                         

                                                                         
                                                                         

                                                                         
                                                                         

  

                                                     




                                                                           
                                                                        
                                      
                                                                




                                                                    
                 
                                                     
                                                                   

                                                                   

                                                                    
                                          
 
                                                          

                                                              
                                                       
                                                                        
                                                                       
 
                                       





                                                                          
                                                                         


                                          

                        
#ifndef _LINUX_FS_H
#define _LINUX_FS_H

/*
 * This file has definitions for some important file table
 * structures etc.
 */

#include <linux/limits.h>
#include <linux/ioctl.h>
#include <linux/blk_types.h>
#include <linux/types.h>

/*
 * It's silly to have NR_OPEN bigger than NR_FILE, but you can change
 * the file limit at runtime and only root can increase the per-process
 * nr_file rlimit, so it's safe to set up a ridiculously high absolute
 * upper limit on files-per-process.
 *
 * Some programs (notably those using select()) may have to be 
 * recompiled to take full advantage of the new limits..  
 */

/* Fixed constants first: */
#undef NR_OPEN
#define INR_OPEN_CUR 1024	/* Initial setting for nfile rlimits */
#define INR_OPEN_MAX 4096	/* Hard limit for nfile rlimits */

#define BLOCK_SIZE_BITS 10
#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)

#define SEEK_SET	0	/* seek relative to beginning of file */
#define SEEK_CUR	1	/* seek relative to current file position */
#define SEEK_END	2	/* seek relative to end of file */
#define SEEK_DATA	3	/* seek to the next data */
#define SEEK_HOLE	4	/* seek to the next hole */
#define SEEK_MAX	SEEK_HOLE

struct fstrim_range {
	__u64 start;
	__u64 len;
	__u64 minlen;
};

/* And dynamically-tunable limits and defaults: */
struct files_stat_struct {
	unsigned long nr_files;		/* read only */
	unsigned long nr_free_files;	/* read only */
	unsigned long max_files;		/* tunable */
};

struct inodes_stat_t {
	int nr_inodes;
	int nr_unused;
	int dummy[5];		/* padding for sysctl ABI compatibility */
};


#define NR_FILE  8192	/* this can well be larger on a larger system */

#define MAY_EXEC		0x00000001
#define MAY_WRITE		0x00000002
#define MAY_READ		0x00000004
#define MAY_APPEND		0x00000008
#define MAY_ACCESS		0x00000010
#define MAY_OPEN		0x00000020
#define MAY_CHDIR		0x00000040
/* called from RCU mode, don't block */
#define MAY_NOT_BLOCK		0x00000080

/*
 * flags in file.f_mode.  Note that FMODE_READ and FMODE_WRITE must correspond
 * to O_WRONLY and O_RDWR via the strange trick in __dentry_open()
 */

/* file is open for reading */
#define FMODE_READ		((__force fmode_t)0x1)
/* file is open for writing */
#define FMODE_WRITE		((__force fmode_t)0x2)
/* file is seekable */
#define FMODE_LSEEK		((__force fmode_t)0x4)
/* file can be accessed using pread */
#define FMODE_PREAD		((__force fmode_t)0x8)
/* file can be accessed using pwrite */
#define FMODE_PWRITE		((__force fmode_t)0x10)
/* File is opened for execution with sys_execve / sys_uselib */
#define FMODE_EXEC		((__force fmode_t)0x20)
/* File is opened with O_NDELAY (only set for block devices) */
#define FMODE_NDELAY		((__force fmode_t)0x40)
/* File is opened with O_EXCL (only set for block devices) */
#define FMODE_EXCL		((__force fmode_t)0x80)
/* File is opened using open(.., 3, ..) and is writeable only for ioctls
   (specialy hack for floppy.c) */
#define FMODE_WRITE_IOCTL	((__force fmode_t)0x100)

/*
 * Don't update ctime and mtime.
 *
 * Currently a special hack for the XFS open_by_handle ioctl, but we'll
 * hopefully graduate it to a proper O_CMTIME flag supported by open(2) soon.
 */
#define FMODE_NOCMTIME		((__force fmode_t)0x800)

/* Expect random access pattern */
#define FMODE_RANDOM		((__force fmode_t)0x1000)

/* File is huge (eg. /dev/kmem): treat loff_t as unsigned */
#define FMODE_UNSIGNED_OFFSET	((__force fmode_t)0x2000)

/* File is opened with O_PATH; almost nothing can be done with it */
#define FMODE_PATH		((__force fmode_t)0x4000)

/* File was opened by fanotify and shouldn't generate fanotify events */
#define FMODE_NONOTIFY		((__force fmode_t)0x1000000)

/*
 * The below are the various read and write types that we support. Some of
 * them include behavioral modifiers that send information down to the
 * block layer and IO scheduler. Terminology:
 *
 *	The block layer uses device plugging to defer IO a little bit, in
 *	the hope that we will see more IO very shortly. This increases
 *	coalescing of adjacent IO and thus reduces the number of IOs we
 *	have to send to the device. It also allows for better queuing,
 *	if the IO isn't mergeable. If the caller is going to be waiting
 *	for the IO, then he must ensure that the device is unplugged so
 *	that the IO is dispatched to the driver.
 *
 *	All IO is handled async in Linux. This is fine for background
 *	writes, but for reads or writes that someone waits for completion
 *	on, we want to notify the block layer and IO scheduler so that they
 *	know about it. That allows them to make better scheduling
 *	decisions. So when the below references 'sync' and 'async', it
 *	is referencing this priority hint.
 *
 * With that in mind, the available types are:
 *
 * READ			A normal read operation. Device will be plugged.
 * READ_SYNC		A synchronous read. Device is not plugged, caller can
 *			immediately wait on this read without caring about
 *			unplugging.
 * READA		Used for read-ahead operations. Lower priority, and the
 *			block layer could (in theory) choose to ignore this
 *			request if it runs into resource problems.
 * WRITE		A normal async write. Device will be plugged.
 * WRITE_SYNC		Synchronous write. Identical to WRITE, but passes down
 *			the hint that someone will be waiting on this IO
 *			shortly. The write equivalent of READ_SYNC.
 * WRITE_ODIRECT	Special case write for O_DIRECT only.
 * WRITE_FLUSH		Like WRITE_SYNC but with preceding cache flush.
 * WRITE_FUA		Like WRITE_SYNC but data is guaranteed to be on
 *			non-volatile media on completion.
 * WRITE_FLUSH_FUA	Combination of WRITE_FLUSH and FUA. The IO is preceded
 *			by a cache flush and data is guaranteed to be on
 *			non-volatile media on completion.
 *
 */
#define RW_MASK			REQ_WRITE
#define RWA_MASK		REQ_RAHEAD

#define READ			0
#define WRITE			RW_MASK
#define READA			RWA_MASK

#define READ_SYNC		(READ | REQ_SYNC)
#define WRITE_SYNC		(WRITE | REQ_SYNC | REQ_NOIDLE)
#define WRITE_ODIRECT		(WRITE | REQ_SYNC)
#define WRITE_FLUSH		(WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FLUSH)
#define WRITE_FUA		(WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FUA)
#define WRITE_FLUSH_FUA		(WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FLUSH | REQ_FUA)

#define SEL_IN		1
#define SEL_OUT		2
#define SEL_EX		4

/* public flags for file_system_type */
#define FS_REQUIRES_DEV 1 
#define FS_BINARY_MOUNTDATA 2
#define FS_HAS_SUBTYPE 4
#define FS_REVAL_DOT	16384	/* Check the paths ".", ".." for staleness */
#define FS_RENAME_DOES_D_MOVE	32768	/* FS will handle d_move()
					 * during rename() internally.
					 */

/*
 * These are the fs-independent mount-flags: up to 32 flags are supported
 */
#define MS_RDONLY	 1	/* Mount read-only */
#define MS_NOSUID	 2	/* Ignore suid and sgid bits */
#define MS_NODEV	 4	/* Disallow access to device special files */
#define MS_NOEXEC	 8	/* Disallow program execution */
#define MS_SYNCHRONOUS	16	/* Writes are synced at once */
#define MS_REMOUNT	32	/* Alter flags of a mounted FS */
#define MS_MANDLOCK	64	/* Allow mandatory locks on an FS */
#define MS_DIRSYNC	128	/* Directory modifications are synchronous */
#define MS_NOATIME	1024	/* Do not update access times. */
#define MS_NODIRATIME	2048	/* Do not update directory access times */
#define MS_BIND		4096
#define MS_MOVE		8192
#define MS_REC		16384
#define MS_VERBOSE	32768	/* War is peace. Verbosity is silence.
				   MS_VERBOSE is deprecated. */
#define MS_SILENT	32768
#define MS_POSIXACL	(1<<16)	/* VFS does not apply the umask */
#define MS_UNBINDABLE	(1<<17)	/* change to unbindable */
#define MS_PRIVATE	(1<<18)	/* change to private */
#define MS_SLAVE	(1<<19)	/* change to slave */
#define MS_SHARED	(1<<20)	/* change to shared */
#define MS_RELATIME	(1<<21)	/* Update atime relative to mtime/ctime. */
#define MS_KERNMOUNT	(1<<22) /* this is a kern_mount call */
#define MS_I_VERSION	(1<<23) /* Update inode I_version field */
#define MS_STRICTATIME	(1<<24) /* Always perform atime updates */
#define MS_NOSEC	(1<<28)
#define MS_BORN		(1<<29)
#define MS_ACTIVE	(1<<30)
#define MS_NOUSER	(1<<31)

/*
 * Superblock flags that can be altered by MS_REMOUNT
 */
#define MS_RMT_MASK	(MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION)

/*
 * Old magic mount flag and mask
 */
#define MS_MGC_VAL 0xC0ED0000
#define MS_MGC_MSK 0xffff0000

/* Inode flags - they have nothing to superblock flags now */

#define S_SYNC		1	/* Writes are synced at once */
#define S_NOATIME	2	/* Do not update access times */
#define S_APPEND	4	/* Append-only file */
#define S_IMMUTABLE	8	/* Immutable file */
#define S_DEAD		16	/* removed, but still open directory */
#define S_NOQUOTA	32	/* Inode is not counted to quota */
#define S_DIRSYNC	64	/* Directory modifications are synchronous */
#define S_NOCMTIME	128	/* Do not update file c/mtime */
#define S_SWAPFILE	256	/* Do not truncate: swapon got its bmaps */
#define S_PRIVATE	512	/* Inode is fs-internal */
#define S_IMA		1024	/* Inode has an associated IMA struct */
#define S_AUTOMOUNT	2048	/* Automount/referral quasi-directory */
#define S_NOSEC		4096	/* no suid or xattr security attributes */

/*
 * Note that nosuid etc flags are inode-specific: setting some file-system
 * flags just means all the inodes inherit those flags by default. It might be
 * possible to override it selectively if you really wanted to with some
 * ioctl() that is not currently implemented.
 *
 * Exception: MS_RDONLY is always applied to the entire file system.
 *
 * Unfortunately, it is possible to change a filesystems flags with it mounted
 * with files in use.  This means that all of the inodes will not have their
 * i_flags updated.  Hence, i_flags no longer inherit the superblock mount
 * flags, so these have to be checked separately. -- rmk@arm.uk.linux.org
 */
#define __IS_FLG(inode,flg) ((inode)->i_sb->s_flags & (flg))

#define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY)
#define IS_SYNC(inode)		(__IS_FLG(inode, MS_SYNCHRONOUS) || \
					((inode)->i_flags & S_SYNC))
#define IS_DIRSYNC(inode)	(__IS_FLG(inode, MS_SYNCHRONOUS|MS_DIRSYNC) || \
					((inode)->i_flags & (S_SYNC|S_DIRSYNC)))
#define IS_MANDLOCK(inode)	__IS_FLG(inode, MS_MANDLOCK)
#define IS_NOATIME(inode)   __IS_FLG(inode, MS_RDONLY|MS_NOATIME)
#define IS_I_VERSION(inode)   __IS_FLG(inode, MS_I_VERSION)

#define IS_NOQUOTA(inode)	((inode)->i_flags & S_NOQUOTA)
#define IS_APPEND(inode)	((inode)->i_flags & S_APPEND)
#define IS_IMMUTABLE(inode)	((inode)->i_flags & S_IMMUTABLE)
#define IS_POSIXACL(inode)	__IS_FLG(inode, MS_POSIXACL)

#define IS_DEADDIR(inode)	((inode)->i_flags & S_DEAD)
#define IS_NOCMTIME(inode)	((inode)->i_flags & S_NOCMTIME)
#define IS_SWAPFILE(inode)	((inode)->i_flags & S_SWAPFILE)
#define IS_PRIVATE(inode)	((inode)->i_flags & S_PRIVATE)
#define IS_IMA(inode)		((inode)->i_flags & S_IMA)
#define IS_AUTOMOUNT(inode)	((inode)->i_flags & S_AUTOMOUNT)
#define IS_NOSEC(inode)		((inode)->i_flags & S_NOSEC)

/* the read-only stuff doesn't really belong here, but any other place is
   probably as bad and I don't want to create yet another include file. */

#define BLKROSET   _IO(0x12,93)	/* set device read-only (0 = read-write) */
#define BLKROGET   _IO(0x12,94)	/* get read-only status (0 = read_write) */
#define BLKRRPART  _IO(0x12,95)	/* re-read partition table */
#define BLKGETSIZE _IO(0x12,96)	/* return device size /512 (long *arg) */
#define BLKFLSBUF  _IO(0x12,97)	/* flush buffer cache */
#define BLKRASET   _IO(0x12,98)	/* set read ahead for block device */
#define BLKRAGET   _IO(0x12,99)	/* get current read ahead setting */
#define BLKFRASET  _IO(0x12,100)/* set filesystem (mm/filemap.c) read-ahead */
#define BLKFRAGET  _IO(0x12,101)/* get filesystem (mm/filemap.c) read-ahead */
#define BLKSECTSET _IO(0x12,102)/* set max sectors per request (ll_rw_blk.c) */
#define BLKSECTGET _IO(0x12,103)/* get max sectors per request (ll_rw_blk.c) */
#define BLKSSZGET  _IO(0x12,104)/* get block device sector size */
#if 0
#define BLKPG      _IO(0x12,105)/* See blkpg.h */

/* Some people are morons.  Do not use sizeof! */

#define BLKELVGET  _IOR(0x12,106,size_t)/* elevator get */
#define BLKELVSET  _IOW(0x12,107,size_t)/* elevator set */
/* This was here just to show that the number is taken -
   probably all these _IO(0x12,*) ioctls should be moved to blkpg.h. */
#endif
/* A jump here: 108-111 have been used for various private purposes. */
#define BLKBSZGET  _IOR(0x12,112,size_t)
#define BLKBSZSET  _IOW(0x12,113,size_t)
#define BLKGETSIZE64 _IOR(0x12,114,size_t)	/* return device size in bytes (u64 *arg) */
#define BLKTRACESETUP _IOWR(0x12,115,struct blk_user_trace_setup)
#define BLKTRACESTART _IO(0x12,116)
#define BLKTRACESTOP _IO(0x12,117)
#define BLKTRACETEARDOWN _IO(0x12,118)
#define BLKDISCARD _IO(0x12,119)
#define BLKIOMIN _IO(0x12,120)
#define BLKIOOPT _IO(0x12,121)
#define BLKALIGNOFF _IO(0x12,122)
#define BLKPBSZGET _IO(0x12,123)
#define BLKDISCARDZEROES _IO(0x12,124)
#define BLKSECDISCARD _IO(0x12,125)

#define BMAP_IOCTL 1		/* obsolete - kept for compatibility */
#define FIBMAP	   _IO(0x00,1)	/* bmap access */
#define FIGETBSZ   _IO(0x00,2)	/* get the block size used for bmap */
#define FIFREEZE	_IOWR('X', 119, int)	/* Freeze */
#define FITHAW		_IOWR('X', 120, int)	/* Thaw */
#define FITRIM		_IOWR('X', 121, struct fstrim_range)	/* Trim */

#define	FS_IOC_GETFLAGS			_IOR('f', 1, long)
#define	FS_IOC_SETFLAGS			_IOW('f', 2, long)
#define	FS_IOC_GETVERSION		_IOR('v', 1, long)
#define	FS_IOC_SETVERSION		_IOW('v', 2, long)
#define FS_IOC_FIEMAP			_IOWR('f', 11, struct fiemap)
#define FS_IOC32_GETFLAGS		_IOR('f', 1, int)
#define FS_IOC32_SETFLAGS		_IOW('f', 2, int)
#define FS_IOC32_GETVERSION		_IOR('v', 1, int)
#define FS_IOC32_SETVERSION		_IOW('v', 2, int)

/*
 * Inode flags (FS_IOC_GETFLAGS / FS_IOC_SETFLAGS)
 */
#define	FS_SECRM_FL			0x00000001 /* Secure deletion */
#define	FS_UNRM_FL			0x00000002 /* Undelete */
#define	FS_COMPR_FL			0x00000004 /* Compress file */
#define FS_SYNC_FL			0x00000008 /* Synchronous updates */
#define FS_IMMUTABLE_FL			0x00000010 /* Immutable file */
#define FS_APPEND_FL			0x00000020 /* writes to file may only append */
#define FS_NODUMP_FL			0x00000040 /* do not dump file */
#define FS_NOATIME_FL			0x00000080 /* do not update atime */
/* Reserved for compression usage... */
#define FS_DIRTY_FL			0x00000100
#define FS_COMPRBLK_FL			0x00000200 /* One or more compressed clusters */
#define FS_NOCOMP_FL			0x00000400 /* Don't compress */
#define FS_ECOMPR_FL			0x00000800 /* Compression error */
/* End compression flags --- maybe not all used */
#define FS_BTREE_FL			0x00001000 /* btree format dir */
#define FS_INDEX_FL			0x00001000 /* hash-indexed directory */
#define FS_IMAGIC_FL			0x00002000 /* AFS directory */
#define FS_JOURNAL_DATA_FL		0x00004000 /* Reserved for ext3 */
#define FS_NOTAIL_FL			0x00008000 /* file tail should not be merged */
#define FS_DIRSYNC_FL			0x00010000 /* dirsync behaviour (directories only) */
#define FS_TOPDIR_FL			0x00020000 /* Top of directory hierarchies*/
#define FS_EXTENT_FL			0x00080000 /* Extents */
#define FS_DIRECTIO_FL			0x00100000 /* Use direct i/o */
#define FS_NOCOW_FL			0x00800000 /* Do not cow file */
#define FS_RESERVED_FL			0x80000000 /* reserved for ext2 lib */

#define FS_FL_USER_VISIBLE		0x0003DFFF /* User visible flags */
#define FS_FL_USER_MODIFIABLE		0x000380FF /* User modifiable flags */


#define SYNC_FILE_RANGE_WAIT_BEFORE	1
#define SYNC_FILE_RANGE_WRITE		2
#define SYNC_FILE_RANGE_WAIT_AFTER	4

#ifdef __KERNEL__

#include <linux/linkage.h>
#include <linux/wait.h>
#include <linux/kdev_t.h>
#include <linux/dcache.h>
#include <linux/path.h>
#include <linux/stat.h>
#include <linux/cache.h>
#include <linux/list.h>
#include <linux/radix-tree.h>
#include <linux/prio_tree.h>
#include <linux/init.h>
#include <linux/pid.h>
#include <linux/mutex.h>
#include <linux/capability.h>
#include <linux/semaphore.h>
#include <linux/fiemap.h>
#include <linux/rculist_bl.h>
#include <linux/atomic.h>
#include <linux/shrinker.h>

#include <asm/byteorder.h>

struct export_operations;
struct hd_geometry;
struct iovec;
struct nameidata;
struct kiocb;
struct kobject;
struct pipe_inode_info;
struct poll_table_struct;
struct kstatfs;
struct vm_area_struct;
struct vfsmount;
struct cred;

extern void __init inode_init(void);
extern void __init inode_init_early(void);
extern void __init files_init(unsigned long);

extern struct files_stat_struct files_stat;
extern unsigned long get_max_files(void);
extern int sysctl_nr_open;
extern struct inodes_stat_t inodes_stat;
extern int leases_enable, lease_break_time;

struct buffer_head;
typedef int (get_block_t)(struct inode *inode, sector_t iblock,
			struct buffer_head *bh_result, int create);
typedef void (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
			ssize_t bytes, void *private, int ret,
			bool is_async);

/*
 * Attribute flags.  These should be or-ed together to figure out what
 * has been changed!
 */
#define ATTR_MODE	(1 << 0)
#define ATTR_UID	(1 << 1)
#define ATTR_GID	(1 << 2)
#define ATTR_SIZE	(1 << 3)
#define ATTR_ATIME	(1 << 4)
#define ATTR_MTIME	(1 << 5)
#define ATTR_CTIME	(1 << 6)
#define ATTR_ATIME_SET	(1 << 7)
#define ATTR_MTIME_SET	(1 << 8)
#define ATTR_FORCE	(1 << 9) /* Not a change, but a change it */
#define ATTR_ATTR_FLAG	(1 << 10)
#define ATTR_KILL_SUID	(1 << 11)
#define ATTR_KILL_SGID	(1 << 12)
#define ATTR_FILE	(1 << 13)
#define ATTR_KILL_PRIV	(1 << 14)
#define ATTR_OPEN	(1 << 15) /* Truncating from open(O_TRUNC) */
#define ATTR_TIMES_SET	(1 << 16)

/*
 * This is the Inode Attributes structure, used for notify_change().  It
 * uses the above definitions as flags, to know which values have changed.
 * Also, in this manner, a Filesystem can look at only the values it cares
 * about.  Basically, these are the attributes that the VFS layer can
 * request to change from the FS layer.
 *
 * Derek Atkins <warlord@MIT.EDU> 94-10-20
 */
struct iattr {
	unsigned int	ia_valid;
	umode_t		ia_mode;
	uid_t		ia_uid;
	gid_t		ia_gid;
	loff_t		ia_size;
	struct timespec	ia_atime;
	struct timespec	ia_mtime;
	struct timespec	ia_ctime;

	/*
	 * Not an attribute, but an auxiliary info for filesystems wanting to
	 * implement an ftruncate() like method.  NOTE: filesystem should
	 * check for (ia_valid & ATTR_FILE), and not for (ia_file != NULL).
	 */
	struct file	*ia_file;
};

/*
 * Includes for diskquotas.
 */
#include <linux/quota.h>

/** 
 * enum positive_aop_returns - aop return codes with specific semantics
 *
 * @AOP_WRITEPAGE_ACTIVATE: Informs the caller that page writeback has
 * 			    completed, that the page is still locked, and
 * 			    should be considered active.  The VM uses this hint
 * 			    to return the page to the active list -- it won't
 * 			    be a candidate for writeback again in the near
 * 			    future.  Other callers must be careful to unlock
 * 			    the page if they get this return.  Returned by
 * 			    writepage(); 
 *
 * @AOP_TRUNCATED_PAGE: The AOP method that was handed a locked page has
 *  			unlocked it and the page might have been truncated.
 *  			The caller should back up to acquiring a new page and
 *  			trying again.  The aop will be taking reasonable
 *  			precautions not to livelock.  If the caller held a page
 *  			reference, it should drop it before retrying.  Returned
 *  			by readpage().
 *
 * address_space_operation functions return these large constants to indicate
 * special semantics to the caller.  These are much larger than the bytes in a
 * page to allow for functions that return the number of bytes operated on in a
 * given page.
 */

enum positive_aop_returns {
	AOP_WRITEPAGE_ACTIVATE	= 0x80000,
	AOP_TRUNCATED_PAGE	= 0x80001,
};

#define AOP_FLAG_UNINTERRUPTIBLE	0x0001 /* will not do a short write */
#define AOP_FLAG_CONT_EXPAND		0x0002 /* called from cont_expand */
#define AOP_FLAG_NOFS			0x0004 /* used by filesystem to direct
						* helper code (eg buffer layer)
						* to clear GFP_FS from alloc */

/*
 * oh the beauties of C type declarations.
 */
struct page;
struct address_space;
struct writeback_control;

struct iov_iter {
	const struct iovec *iov;
	unsigned long nr_segs;
	size_t iov_offset;
	size_t count;
};

size_t iov_iter_copy_from_user_atomic(struct page *page,
		struct iov_iter *i, unsigned long offset, size_t bytes);
size_t iov_iter_copy_from_user(struct page *page,
		struct iov_iter *i, unsigned long offset, size_t bytes);
void iov_iter_advance(struct iov_iter *i, size_t bytes);
int iov_iter_fault_in_readable(struct iov_iter *i, size_t bytes);
size_t iov_iter_single_seg_count(struct iov_iter *i);

static inline void iov_iter_init(struct iov_iter *i,
			const struct iovec *iov, unsigned long nr_segs,
			size_t count, size_t written)
{
	i->iov = iov;
	i->nr_segs = nr_segs;
	i->iov_offset = 0;
	i->count = count + written;

	iov_iter_advance(i, written);
}

static inline size_t iov_iter_count(struct iov_iter *i)
{
	return i->count;
}

/*
 * "descriptor" for what we're up to with a read.
 * This allows us to use the same read code yet
 * have multiple different users of the data that
 * we read from a file.
 *
 * The simplest case just copies the data to user
 * mode.
 */
typedef struct {
	size_t written;
	size_t count;
	union {
		char __user *buf;
		void *data;
	} arg;
	int error;
} read_descriptor_t;

typedef int (*read_actor_t)(read_descriptor_t *, struct page *,
		unsigned long, unsigned long);

struct address_space_operations {
	int (*writepage)(struct page *page, struct writeback_control *wbc);
	int (*readpage)(struct file *, struct page *);

	/* Write back some dirty pages from this mapping. */
	int (*writepages)(struct address_space *, struct writeback_control *);

	/* Set a page dirty.  Return true if this dirtied it */
	int (*set_page_dirty)(struct page *page);

	int (*readpages)(struct file *filp, struct address_space *mapping,
			struct list_head *pages, unsigned nr_pages);

	int (*write_begin)(struct file *, struct address_space *mapping,
				loff_t pos, unsigned len, unsigned flags,
				struct page **pagep, void **fsdata);
	int (*write_end)(struct file *, struct address_space *mapping,
				loff_t pos, unsigned len, unsigned copied,
				struct page *page, void *fsdata);

	/* Unfortunately this kludge is needed for FIBMAP. Don't use it */
	sector_t (*bmap)(struct address_space *, sector_t);
	void (*invalidatepage) (struct page *, unsigned long);
	int (*releasepage) (struct page *, gfp_t);
	void (*freepage)(struct page *);
	ssize_t (*direct_IO)(int, struct kiocb *, const struct iovec *iov,
			loff_t offset, unsigned long nr_segs);
	int (*get_xip_mem)(struct address_space *, pgoff_t, int,
						void **, unsigned long *);
	/*
	 * migrate the contents of a page to the specified target. If sync
	 * is false, it must not block.
	 */
	int (*migratepage) (struct address_space *,
			struct page *, struct page *, bool);
	int (*launder_page) (struct page *);
	int (*is_partially_uptodate) (struct page *, read_descriptor_t *,
					unsigned long);
	int (*error_remove_page)(struct address_space *, struct page *);
};

extern const struct address_space_operations empty_aops;

/*
 * pagecache_write_begin/pagecache_write_end must be used by general code
 * to write into the pagecache.
 */
int pagecache_write_begin(struct file *, struct address_space *mapping,
				loff_t pos, unsigned len, unsigned flags,
				struct page **pagep, void **fsdata);

int pagecache_write_end(struct file *, struct address_space *mapping,
				loff_t pos, unsigned len, unsigned copied,
				struct page *page, void *fsdata);