diff options
Diffstat (limited to 'fs/udf/udfdecl.h')
-rw-r--r-- | fs/udf/udfdecl.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h index 681dc2b66cdb..c9c75856af80 100644 --- a/fs/udf/udfdecl.h +++ b/fs/udf/udfdecl.h | |||
@@ -1,18 +1,37 @@ | |||
1 | #ifndef __UDF_DECL_H | 1 | #ifndef __UDF_DECL_H |
2 | #define __UDF_DECL_H | 2 | #define __UDF_DECL_H |
3 | 3 | ||
4 | #include <linux/udf_fs.h> | ||
5 | #include "ecma_167.h" | 4 | #include "ecma_167.h" |
6 | #include "osta_udf.h" | 5 | #include "osta_udf.h" |
7 | 6 | ||
8 | #include <linux/fs.h> | 7 | #include <linux/fs.h> |
9 | #include <linux/types.h> | 8 | #include <linux/types.h> |
10 | #include <linux/udf_fs_i.h> | ||
11 | #include <linux/udf_fs_sb.h> | ||
12 | #include <linux/buffer_head.h> | 9 | #include <linux/buffer_head.h> |
10 | #include <linux/udf_fs_i.h> | ||
13 | 11 | ||
12 | #include "udf_sb.h" | ||
14 | #include "udfend.h" | 13 | #include "udfend.h" |
15 | 14 | ||
15 | #define UDF_PREALLOCATE | ||
16 | #define UDF_DEFAULT_PREALLOC_BLOCKS 8 | ||
17 | |||
18 | #undef UDFFS_DEBUG | ||
19 | |||
20 | #ifdef UDFFS_DEBUG | ||
21 | #define udf_debug(f, a...) \ | ||
22 | do { \ | ||
23 | printk(KERN_DEBUG "UDF-fs DEBUG %s:%d:%s: ", \ | ||
24 | __FILE__, __LINE__, __func__); \ | ||
25 | printk(f, ##a); \ | ||
26 | } while (0) | ||
27 | #else | ||
28 | #define udf_debug(f, a...) /**/ | ||
29 | #endif | ||
30 | |||
31 | #define udf_info(f, a...) \ | ||
32 | printk(KERN_INFO "UDF-fs INFO " f, ##a); | ||
33 | |||
34 | |||
16 | #define udf_fixed_to_variable(x) ( ( ( (x) >> 5 ) * 39 ) + ( (x) & 0x0000001F ) ) | 35 | #define udf_fixed_to_variable(x) ( ( ( (x) >> 5 ) * 39 ) + ( (x) & 0x0000001F ) ) |
17 | #define udf_variable_to_fixed(x) ( ( ( (x) / 39 ) << 5 ) + ( (x) % 39 ) ) | 36 | #define udf_variable_to_fixed(x) ( ( ( (x) / 39 ) << 5 ) + ( (x) % 39 ) ) |
18 | 37 | ||