diff options
author | Christoph Hellwig <hch@lst.de> | 2008-02-22 06:39:12 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2008-04-17 08:22:23 -0400 |
commit | 15aebd2866b21a568d8defec134bf29f9aea9088 (patch) | |
tree | 7b697a462e3ff1bedeaaa7cf9a4441ae504c7a07 /fs/udf/udfdecl.h | |
parent | b1e321266d8797b21eac433b11458ac65b098938 (diff) |
udf: move headers out include/linux/
There's really no reason to keep udf headers in include/linux as they're
not used by anything but fs/udf/.
This patch merges most of include/linux/udf_fs_i.h into fs/udf/udf_i.h,
include/linux/udf_fs_sb.h into fs/udf/udf_sb.h and
include/linux/udf_fs.h into fs/udf/udfdecl.h.
The only thing remaining in include/linux/ is a stub of udf_fs_i.h
defining the four user-visible udf ioctls. It's also moved from
unifdef-y to headers-y because it can be included unconditionally now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
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 | ||