diff options
author | Paul Mackerras <paulus@samba.org> | 2006-02-23 22:05:47 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-02-23 22:05:47 -0500 |
commit | a00428f5b149e36b8225b2a0812742a6dfb07b8c (patch) | |
tree | a78869cd67cf78a0eb091fb0ea5d397734bd6738 /lib | |
parent | 774fee58c465ea1c7e9775e347ec307bcf2deeb3 (diff) | |
parent | fb5c594c2acc441f0d2d8f457484a0e0e9285db3 (diff) |
Merge ../powerpc-merge
Diffstat (limited to 'lib')
-rw-r--r-- | lib/iomap_copy.c | 2 | ||||
-rw-r--r-- | lib/kobject_uevent.c | 4 | ||||
-rw-r--r-- | lib/radix-tree.c | 10 |
3 files changed, 11 insertions, 5 deletions
diff --git a/lib/iomap_copy.c b/lib/iomap_copy.c index a6b1e271d53c..351045f4f63c 100644 --- a/lib/iomap_copy.c +++ b/lib/iomap_copy.c | |||
@@ -15,8 +15,8 @@ | |||
15 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | 15 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/io.h> | ||
19 | #include <linux/module.h> | 18 | #include <linux/module.h> |
19 | #include <linux/io.h> | ||
20 | 20 | ||
21 | /** | 21 | /** |
22 | * __iowrite32_copy - copy data to MMIO space, in 32-bit units | 22 | * __iowrite32_copy - copy data to MMIO space, in 32-bit units |
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index 1b1985c136ec..086a0c6e888e 100644 --- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c | |||
@@ -38,6 +38,10 @@ static char *action_to_string(enum kobject_action action) | |||
38 | return "remove"; | 38 | return "remove"; |
39 | case KOBJ_CHANGE: | 39 | case KOBJ_CHANGE: |
40 | return "change"; | 40 | return "change"; |
41 | case KOBJ_MOUNT: | ||
42 | return "mount"; | ||
43 | case KOBJ_UMOUNT: | ||
44 | return "umount"; | ||
41 | case KOBJ_OFFLINE: | 45 | case KOBJ_OFFLINE: |
42 | return "offline"; | 46 | return "offline"; |
43 | case KOBJ_ONLINE: | 47 | case KOBJ_ONLINE: |
diff --git a/lib/radix-tree.c b/lib/radix-tree.c index c0bd4a914803..1e5b17dc7e3d 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c | |||
@@ -752,12 +752,14 @@ void *radix_tree_delete(struct radix_tree_root *root, unsigned long index) | |||
752 | */ | 752 | */ |
753 | nr_cleared_tags = 0; | 753 | nr_cleared_tags = 0; |
754 | for (tag = 0; tag < RADIX_TREE_TAGS; tag++) { | 754 | for (tag = 0; tag < RADIX_TREE_TAGS; tag++) { |
755 | tags[tag] = 1; | ||
755 | if (tag_get(pathp->node, tag, pathp->offset)) { | 756 | if (tag_get(pathp->node, tag, pathp->offset)) { |
756 | tag_clear(pathp->node, tag, pathp->offset); | 757 | tag_clear(pathp->node, tag, pathp->offset); |
757 | tags[tag] = 0; | 758 | if (!any_tag_set(pathp->node, tag)) { |
758 | nr_cleared_tags++; | 759 | tags[tag] = 0; |
759 | } else | 760 | nr_cleared_tags++; |
760 | tags[tag] = 1; | 761 | } |
762 | } | ||
761 | } | 763 | } |
762 | 764 | ||
763 | for (pathp--; nr_cleared_tags && pathp->node; pathp--) { | 765 | for (pathp--; nr_cleared_tags && pathp->node; pathp--) { |