aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_map.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-01-05 21:25:51 -0500
committerChris Mason <chris.mason@oracle.com>2009-01-05 21:25:51 -0500
commitd397712bcc6a759a560fd247e6053ecae091f958 (patch)
tree9da8daebb870d8b8b1843507c4621715e23dd31a /fs/btrfs/extent_map.c
parent1f3c79a28c8837e8572b98f6d14142d9a6133c56 (diff)
Btrfs: Fix checkpatch.pl warnings
There were many, most are fixed now. struct-funcs.c generates some warnings but these are bogus. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r--fs/btrfs/extent_map.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c
index fd3ebfb8c3c5..4a83e33ada32 100644
--- a/fs/btrfs/extent_map.c
+++ b/fs/btrfs/extent_map.c
@@ -89,11 +89,11 @@ EXPORT_SYMBOL(free_extent_map);
89static struct rb_node *tree_insert(struct rb_root *root, u64 offset, 89static struct rb_node *tree_insert(struct rb_root *root, u64 offset,
90 struct rb_node *node) 90 struct rb_node *node)
91{ 91{
92 struct rb_node ** p = &root->rb_node; 92 struct rb_node **p = &root->rb_node;
93 struct rb_node * parent = NULL; 93 struct rb_node *parent = NULL;
94 struct extent_map *entry; 94 struct extent_map *entry;
95 95
96 while(*p) { 96 while (*p) {
97 parent = *p; 97 parent = *p;
98 entry = rb_entry(parent, struct extent_map, rb_node); 98 entry = rb_entry(parent, struct extent_map, rb_node);
99 99
@@ -122,13 +122,13 @@ static struct rb_node *__tree_search(struct rb_root *root, u64 offset,
122 struct rb_node **prev_ret, 122 struct rb_node **prev_ret,
123 struct rb_node **next_ret) 123 struct rb_node **next_ret)
124{ 124{
125 struct rb_node * n = root->rb_node; 125 struct rb_node *n = root->rb_node;
126 struct rb_node *prev = NULL; 126 struct rb_node *prev = NULL;
127 struct rb_node *orig_prev = NULL; 127 struct rb_node *orig_prev = NULL;
128 struct extent_map *entry; 128 struct extent_map *entry;
129 struct extent_map *prev_entry = NULL; 129 struct extent_map *prev_entry = NULL;
130 130
131 while(n) { 131 while (n) {
132 entry = rb_entry(n, struct extent_map, rb_node); 132 entry = rb_entry(n, struct extent_map, rb_node);
133 prev = n; 133 prev = n;
134 prev_entry = entry; 134 prev_entry = entry;
@@ -145,7 +145,7 @@ static struct rb_node *__tree_search(struct rb_root *root, u64 offset,
145 145
146 if (prev_ret) { 146 if (prev_ret) {
147 orig_prev = prev; 147 orig_prev = prev;
148 while(prev && offset >= extent_map_end(prev_entry)) { 148 while (prev && offset >= extent_map_end(prev_entry)) {
149 prev = rb_next(prev); 149 prev = rb_next(prev);
150 prev_entry = rb_entry(prev, struct extent_map, rb_node); 150 prev_entry = rb_entry(prev, struct extent_map, rb_node);
151 } 151 }
@@ -155,7 +155,7 @@ static struct rb_node *__tree_search(struct rb_root *root, u64 offset,
155 155
156 if (next_ret) { 156 if (next_ret) {
157 prev_entry = rb_entry(prev, struct extent_map, rb_node); 157 prev_entry = rb_entry(prev, struct extent_map, rb_node);
158 while(prev && offset < prev_entry->start) { 158 while (prev && offset < prev_entry->start) {
159 prev = rb_prev(prev); 159 prev = rb_prev(prev);
160 prev_entry = rb_entry(prev, struct extent_map, rb_node); 160 prev_entry = rb_entry(prev, struct extent_map, rb_node);
161 } 161 }