initial import
[patches.git] / linux-export-ufs-fs-header.patch
CommitLineData
5e993f12 1Touchup ufs_fs.h so we can export it to userspace.
2
3Signed-off-by: Mike Frysinger <vapier@gentoo.org>
4
5diff --git a/include/linux/Kbuild b/include/linux/Kbuild
6index 862e483..fde20b0 100644
7--- a/include/linux/Kbuild
8+++ b/include/linux/Kbuild
9@@ -324,6 +324,7 @@ unifdef-y += tty.h
10 unifdef-y += types.h
11 unifdef-y += udf_fs_i.h
12 unifdef-y += udp.h
13+unifdef-y += ufs_fs.h
14 unifdef-y += uinput.h
15 unifdef-y += uio.h
16 unifdef-y += unistd.h
17diff --git a/include/linux/ufs_fs.h b/include/linux/ufs_fs.h
18index 28967ed..0497738 100644
19--- a/include/linux/ufs_fs.h
20+++ b/include/linux/ufs_fs.h
21@@ -45,8 +45,10 @@ typedef __u32 __bitwise __fs32;
22 typedef __u16 __bitwise __fs16;
23 #endif
24
25+#ifdef __KERNEL__
26 #include <linux/ufs_fs_i.h>
27 #include <linux/ufs_fs_sb.h>
28+#endif
29
30 #define UFS_BBLOCK 0
31 #define UFS_BBSIZE 8192
32@@ -303,7 +305,7 @@ typedef __u16 __bitwise __fs16;
33 #define UFS_MAXMNTLEN 512
34 #define UFS2_MAXMNTLEN 468
35 #define UFS2_MAXVOLLEN 32
36-/* #define UFS_MAXCSBUFS 31 */
37+#define UFS_MAXCSBUFS 31
38 #define UFS_LINK_MAX 32000
39 /*
40 #define UFS2_NOCSPTRS ((128 / sizeof(void *)) - 4)
41diff --git a/include/linux/ufs_fs_sb.h b/include/linux/ufs_fs_sb.h
42index 8ff13c1..e114c93 100644
43--- a/include/linux/ufs_fs_sb.h
44+++ b/include/linux/ufs_fs_sb.h
45@@ -21,7 +21,6 @@
46 struct ufs_sb_private_info;
47 struct ufs_cg_private_info;
48 struct ufs_csum;
49-#define UFS_MAXCSBUFS 31
50
51 struct ufs_sb_info {
52 struct ufs_sb_private_info * s_uspi;