diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-11-28 13:03:30 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-11-28 13:03:30 -0500 |
commit | 4a092d737955301da22b9d5e07f5036da821a932 (patch) | |
tree | e0532dda14a20822c61448a395cc60b6803b0f46 /fs/ext4/super.c | |
parent | 766f44d46a726cb59f52a75c5c87425a10c4bade (diff) |
ext4: rationalize ext4_extents.h inclusion
Previously, ext4_extents.h was being included at the end of ext4.h,
which was bad for a number of reasons: (a) it was not being included
in the expected place, and (b) it caused the header to be included
multiple times. There were #ifdef's to prevent this from causing any
problems, but it still was unnecessary.
By moving the function declarations that were in ext4_extents.h to
ext4.h, which is standard practice for where the function declarations
for the rest of ext4.h can be found, we can remove ext4_extents.h from
being included in ext4.h at all, and then we can only include
ext4_extents.h where it is needed in ext4's source files.
It should be possible to move a few more things into ext4.h, and
further reduce the number of source files that need to #include
ext4_extents.h, but that's a cleanup for another day.
Reported-by: Sachin Kamat <sachin.kamat@linaro.org>
Reported-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 66a4e20424cf..856206f255aa 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -45,12 +45,11 @@ | |||
45 | #include <linux/freezer.h> | 45 | #include <linux/freezer.h> |
46 | 46 | ||
47 | #include "ext4.h" | 47 | #include "ext4.h" |
48 | #include "ext4_extents.h" | 48 | #include "ext4_extents.h" /* Needed for trace points definition */ |
49 | #include "ext4_jbd2.h" | 49 | #include "ext4_jbd2.h" |
50 | #include "xattr.h" | 50 | #include "xattr.h" |
51 | #include "acl.h" | 51 | #include "acl.h" |
52 | #include "mballoc.h" | 52 | #include "mballoc.h" |
53 | #include "ext4_extents.h" | ||
54 | 53 | ||
55 | #define CREATE_TRACE_POINTS | 54 | #define CREATE_TRACE_POINTS |
56 | #include <trace/events/ext4.h> | 55 | #include <trace/events/ext4.h> |