diff options
-rw-r--r-- | fs/ufs/balloc.c | 2 | ||||
-rw-r--r-- | fs/ufs/cylinder.c | 2 | ||||
-rw-r--r-- | fs/ufs/dir.c | 2 | ||||
-rw-r--r-- | fs/ufs/file.c | 2 | ||||
-rw-r--r-- | fs/ufs/ialloc.c | 2 | ||||
-rw-r--r-- | fs/ufs/inode.c | 2 | ||||
-rw-r--r-- | fs/ufs/namei.c | 3 | ||||
-rw-r--r-- | fs/ufs/super.c | 2 | ||||
-rw-r--r-- | fs/ufs/symlink.c | 3 | ||||
-rw-r--r-- | fs/ufs/truncate.c | 2 | ||||
-rw-r--r-- | fs/ufs/ufs_fs.h (renamed from include/linux/ufs_fs.h) | 10 | ||||
-rw-r--r-- | fs/ufs/util.c | 2 | ||||
-rw-r--r-- | include/linux/Kbuild | 1 |
13 files changed, 15 insertions, 20 deletions
diff --git a/fs/ufs/balloc.c b/fs/ufs/balloc.c index f63a09ce8683..1fca381f0ce2 100644 --- a/fs/ufs/balloc.c +++ b/fs/ufs/balloc.c | |||
@@ -9,7 +9,6 @@ | |||
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/fs.h> | 11 | #include <linux/fs.h> |
12 | #include <linux/ufs_fs.h> | ||
13 | #include <linux/stat.h> | 12 | #include <linux/stat.h> |
14 | #include <linux/time.h> | 13 | #include <linux/time.h> |
15 | #include <linux/string.h> | 14 | #include <linux/string.h> |
@@ -19,6 +18,7 @@ | |||
19 | #include <linux/bitops.h> | 18 | #include <linux/bitops.h> |
20 | #include <asm/byteorder.h> | 19 | #include <asm/byteorder.h> |
21 | 20 | ||
21 | #include "ufs_fs.h" | ||
22 | #include "ufs.h" | 22 | #include "ufs.h" |
23 | #include "swab.h" | 23 | #include "swab.h" |
24 | #include "util.h" | 24 | #include "util.h" |
diff --git a/fs/ufs/cylinder.c b/fs/ufs/cylinder.c index 2a815665644f..b4676322ddb6 100644 --- a/fs/ufs/cylinder.c +++ b/fs/ufs/cylinder.c | |||
@@ -9,7 +9,6 @@ | |||
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/fs.h> | 11 | #include <linux/fs.h> |
12 | #include <linux/ufs_fs.h> | ||
13 | #include <linux/time.h> | 12 | #include <linux/time.h> |
14 | #include <linux/stat.h> | 13 | #include <linux/stat.h> |
15 | #include <linux/string.h> | 14 | #include <linux/string.h> |
@@ -17,6 +16,7 @@ | |||
17 | 16 | ||
18 | #include <asm/byteorder.h> | 17 | #include <asm/byteorder.h> |
19 | 18 | ||
19 | #include "ufs_fs.h" | ||
20 | #include "ufs.h" | 20 | #include "ufs.h" |
21 | #include "swab.h" | 21 | #include "swab.h" |
22 | #include "util.h" | 22 | #include "util.h" |
diff --git a/fs/ufs/dir.c b/fs/ufs/dir.c index aaf2878305ce..ef563fc8d72c 100644 --- a/fs/ufs/dir.c +++ b/fs/ufs/dir.c | |||
@@ -18,9 +18,9 @@ | |||
18 | 18 | ||
19 | #include <linux/time.h> | 19 | #include <linux/time.h> |
20 | #include <linux/fs.h> | 20 | #include <linux/fs.h> |
21 | #include <linux/ufs_fs.h> | ||
22 | #include <linux/swap.h> | 21 | #include <linux/swap.h> |
23 | 22 | ||
23 | #include "ufs_fs.h" | ||
24 | #include "ufs.h" | 24 | #include "ufs.h" |
25 | #include "swab.h" | 25 | #include "swab.h" |
26 | #include "util.h" | 26 | #include "util.h" |
diff --git a/fs/ufs/file.c b/fs/ufs/file.c index a46c97bf023f..625ef17c6f83 100644 --- a/fs/ufs/file.c +++ b/fs/ufs/file.c | |||
@@ -24,9 +24,9 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <linux/fs.h> | 26 | #include <linux/fs.h> |
27 | #include <linux/ufs_fs.h> | ||
28 | #include <linux/buffer_head.h> /* for sync_mapping_buffers() */ | 27 | #include <linux/buffer_head.h> /* for sync_mapping_buffers() */ |
29 | 28 | ||
29 | #include "ufs_fs.h" | ||
30 | #include "ufs.h" | 30 | #include "ufs.h" |
31 | 31 | ||
32 | 32 | ||
diff --git a/fs/ufs/ialloc.c b/fs/ufs/ialloc.c index 7e260bc0d94f..ac181f6806a3 100644 --- a/fs/ufs/ialloc.c +++ b/fs/ufs/ialloc.c | |||
@@ -24,7 +24,6 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <linux/fs.h> | 26 | #include <linux/fs.h> |
27 | #include <linux/ufs_fs.h> | ||
28 | #include <linux/time.h> | 27 | #include <linux/time.h> |
29 | #include <linux/stat.h> | 28 | #include <linux/stat.h> |
30 | #include <linux/string.h> | 29 | #include <linux/string.h> |
@@ -34,6 +33,7 @@ | |||
34 | #include <linux/bitops.h> | 33 | #include <linux/bitops.h> |
35 | #include <asm/byteorder.h> | 34 | #include <asm/byteorder.h> |
36 | 35 | ||
36 | #include "ufs_fs.h" | ||
37 | #include "ufs.h" | 37 | #include "ufs.h" |
38 | #include "swab.h" | 38 | #include "swab.h" |
39 | #include "util.h" | 39 | #include "util.h" |
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 489f26bc26d9..5446b888fc8e 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c | |||
@@ -30,7 +30,6 @@ | |||
30 | 30 | ||
31 | #include <linux/errno.h> | 31 | #include <linux/errno.h> |
32 | #include <linux/fs.h> | 32 | #include <linux/fs.h> |
33 | #include <linux/ufs_fs.h> | ||
34 | #include <linux/time.h> | 33 | #include <linux/time.h> |
35 | #include <linux/stat.h> | 34 | #include <linux/stat.h> |
36 | #include <linux/string.h> | 35 | #include <linux/string.h> |
@@ -38,6 +37,7 @@ | |||
38 | #include <linux/smp_lock.h> | 37 | #include <linux/smp_lock.h> |
39 | #include <linux/buffer_head.h> | 38 | #include <linux/buffer_head.h> |
40 | 39 | ||
40 | #include "ufs_fs.h" | ||
41 | #include "ufs.h" | 41 | #include "ufs.h" |
42 | #include "swab.h" | 42 | #include "swab.h" |
43 | #include "util.h" | 43 | #include "util.h" |
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c index 747a4de6c695..e3a9b1fac75a 100644 --- a/fs/ufs/namei.c +++ b/fs/ufs/namei.c | |||
@@ -29,8 +29,9 @@ | |||
29 | 29 | ||
30 | #include <linux/time.h> | 30 | #include <linux/time.h> |
31 | #include <linux/fs.h> | 31 | #include <linux/fs.h> |
32 | #include <linux/ufs_fs.h> | ||
33 | #include <linux/smp_lock.h> | 32 | #include <linux/smp_lock.h> |
33 | |||
34 | #include "ufs_fs.h" | ||
34 | #include "ufs.h" | 35 | #include "ufs.h" |
35 | #include "util.h" | 36 | #include "util.h" |
36 | 37 | ||
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index d18ccf36ba34..85b22b5977fa 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -76,7 +76,6 @@ | |||
76 | 76 | ||
77 | #include <linux/errno.h> | 77 | #include <linux/errno.h> |
78 | #include <linux/fs.h> | 78 | #include <linux/fs.h> |
79 | #include <linux/ufs_fs.h> | ||
80 | #include <linux/slab.h> | 79 | #include <linux/slab.h> |
81 | #include <linux/time.h> | 80 | #include <linux/time.h> |
82 | #include <linux/stat.h> | 81 | #include <linux/stat.h> |
@@ -91,6 +90,7 @@ | |||
91 | #include <linux/mount.h> | 90 | #include <linux/mount.h> |
92 | #include <linux/seq_file.h> | 91 | #include <linux/seq_file.h> |
93 | 92 | ||
93 | #include "ufs_fs.h" | ||
94 | #include "ufs.h" | 94 | #include "ufs.h" |
95 | #include "swab.h" | 95 | #include "swab.h" |
96 | #include "util.h" | 96 | #include "util.h" |
diff --git a/fs/ufs/symlink.c b/fs/ufs/symlink.c index 43ac10e75a4a..c0156eda44bc 100644 --- a/fs/ufs/symlink.c +++ b/fs/ufs/symlink.c | |||
@@ -27,7 +27,8 @@ | |||
27 | 27 | ||
28 | #include <linux/fs.h> | 28 | #include <linux/fs.h> |
29 | #include <linux/namei.h> | 29 | #include <linux/namei.h> |
30 | #include <linux/ufs_fs.h> | 30 | |
31 | #include "ufs_fs.h" | ||
31 | #include "ufs.h" | 32 | #include "ufs.h" |
32 | 33 | ||
33 | 34 | ||
diff --git a/fs/ufs/truncate.c b/fs/ufs/truncate.c index 311ded34c2b2..41dd431ce228 100644 --- a/fs/ufs/truncate.c +++ b/fs/ufs/truncate.c | |||
@@ -36,7 +36,6 @@ | |||
36 | 36 | ||
37 | #include <linux/errno.h> | 37 | #include <linux/errno.h> |
38 | #include <linux/fs.h> | 38 | #include <linux/fs.h> |
39 | #include <linux/ufs_fs.h> | ||
40 | #include <linux/fcntl.h> | 39 | #include <linux/fcntl.h> |
41 | #include <linux/time.h> | 40 | #include <linux/time.h> |
42 | #include <linux/stat.h> | 41 | #include <linux/stat.h> |
@@ -46,6 +45,7 @@ | |||
46 | #include <linux/blkdev.h> | 45 | #include <linux/blkdev.h> |
47 | #include <linux/sched.h> | 46 | #include <linux/sched.h> |
48 | 47 | ||
48 | #include "ufs_fs.h" | ||
49 | #include "ufs.h" | 49 | #include "ufs.h" |
50 | #include "swab.h" | 50 | #include "swab.h" |
51 | #include "util.h" | 51 | #include "util.h" |
diff --git a/include/linux/ufs_fs.h b/fs/ufs/ufs_fs.h index 10b854d3561f..54bde1895a80 100644 --- a/include/linux/ufs_fs.h +++ b/fs/ufs/ufs_fs.h | |||
@@ -35,16 +35,10 @@ | |||
35 | #include <linux/stat.h> | 35 | #include <linux/stat.h> |
36 | #include <linux/fs.h> | 36 | #include <linux/fs.h> |
37 | 37 | ||
38 | #ifndef __KERNEL__ | ||
39 | typedef __u64 __fs64; | ||
40 | typedef __u32 __fs32; | ||
41 | typedef __u16 __fs16; | ||
42 | #else | ||
43 | #include <asm/div64.h> | 38 | #include <asm/div64.h> |
44 | typedef __u64 __bitwise __fs64; | 39 | typedef __u64 __bitwise __fs64; |
45 | typedef __u32 __bitwise __fs32; | 40 | typedef __u32 __bitwise __fs32; |
46 | typedef __u16 __bitwise __fs16; | 41 | typedef __u16 __bitwise __fs16; |
47 | #endif | ||
48 | 42 | ||
49 | #define UFS_BBLOCK 0 | 43 | #define UFS_BBLOCK 0 |
50 | #define UFS_BBSIZE 8192 | 44 | #define UFS_BBSIZE 8192 |
@@ -197,7 +191,7 @@ typedef __u16 __bitwise __fs16; | |||
197 | */ | 191 | */ |
198 | #define UFS_MINFREE 5 | 192 | #define UFS_MINFREE 5 |
199 | #define UFS_DEFAULTOPT UFS_OPTTIME | 193 | #define UFS_DEFAULTOPT UFS_OPTTIME |
200 | 194 | ||
201 | /* | 195 | /* |
202 | * Turn file system block numbers into disk block addresses. | 196 | * Turn file system block numbers into disk block addresses. |
203 | * This maps file system blocks to device size blocks. | 197 | * This maps file system blocks to device size blocks. |
@@ -714,7 +708,7 @@ struct ufs_cg_private_info { | |||
714 | __u32 c_clustersumoff;/* (u_int32) counts of avail clusters */ | 708 | __u32 c_clustersumoff;/* (u_int32) counts of avail clusters */ |
715 | __u32 c_clusteroff; /* (u_int8) free cluster map */ | 709 | __u32 c_clusteroff; /* (u_int8) free cluster map */ |
716 | __u32 c_nclusterblks; /* number of clusters this cg */ | 710 | __u32 c_nclusterblks; /* number of clusters this cg */ |
717 | }; | 711 | }; |
718 | 712 | ||
719 | 713 | ||
720 | struct ufs_sb_private_info { | 714 | struct ufs_sb_private_info { |
diff --git a/fs/ufs/util.c b/fs/ufs/util.c index 410084dae389..85a7fc9e4a4e 100644 --- a/fs/ufs/util.c +++ b/fs/ufs/util.c | |||
@@ -8,9 +8,9 @@ | |||
8 | 8 | ||
9 | #include <linux/string.h> | 9 | #include <linux/string.h> |
10 | #include <linux/slab.h> | 10 | #include <linux/slab.h> |
11 | #include <linux/ufs_fs.h> | ||
12 | #include <linux/buffer_head.h> | 11 | #include <linux/buffer_head.h> |
13 | 12 | ||
13 | #include "ufs_fs.h" | ||
14 | #include "ufs.h" | 14 | #include "ufs.h" |
15 | #include "swab.h" | 15 | #include "swab.h" |
16 | #include "util.h" | 16 | #include "util.h" |
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 2ebf068ba504..5cae9b5960ea 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
@@ -338,7 +338,6 @@ unifdef-y += tty.h | |||
338 | unifdef-y += types.h | 338 | unifdef-y += types.h |
339 | unifdef-y += udf_fs_i.h | 339 | unifdef-y += udf_fs_i.h |
340 | unifdef-y += udp.h | 340 | unifdef-y += udp.h |
341 | unifdef-y += ufs_fs.h | ||
342 | unifdef-y += uinput.h | 341 | unifdef-y += uinput.h |
343 | unifdef-y += uio.h | 342 | unifdef-y += uio.h |
344 | unifdef-y += unistd.h | 343 | unifdef-y += unistd.h |