diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-03-30 14:02:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 15:16:36 -0400 |
commit | fd7cb031efb1dd71cb731668e2f597d9e61acdcb (patch) | |
tree | 06ac5360f93d62e76eda0f72f0b2b19974d56df4 /include/linux/reiserfs_fs.h | |
parent | cacbe3d7ad3c0a345ca1ce7bf1ecb4c5bfe54d7b (diff) |
reiserfs: eliminate reiserfs_warning from uniqueness functions
uniqueness2type and type2uniquness issue a warning when the value is
unknown. When called from reiserfs_warning, this causes a re-entrancy
problem and deadlocks on the error buffer lock.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/reiserfs_fs.h')
-rw-r--r-- | include/linux/reiserfs_fs.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h index 056e2a3b04e3..cf5407ee0f32 100644 --- a/include/linux/reiserfs_fs.h +++ b/include/linux/reiserfs_fs.h | |||
@@ -560,10 +560,8 @@ static inline int uniqueness2type(__u32 uniqueness) | |||
560 | return TYPE_DIRECT; | 560 | return TYPE_DIRECT; |
561 | case V1_DIRENTRY_UNIQUENESS: | 561 | case V1_DIRENTRY_UNIQUENESS: |
562 | return TYPE_DIRENTRY; | 562 | return TYPE_DIRENTRY; |
563 | default: | ||
564 | reiserfs_warning(NULL, "vs-500", "unknown uniqueness %d", | ||
565 | uniqueness); | ||
566 | case V1_ANY_UNIQUENESS: | 563 | case V1_ANY_UNIQUENESS: |
564 | default: | ||
567 | return TYPE_ANY; | 565 | return TYPE_ANY; |
568 | } | 566 | } |
569 | } | 567 | } |
@@ -580,9 +578,8 @@ static inline __u32 type2uniqueness(int type) | |||
580 | return V1_DIRECT_UNIQUENESS; | 578 | return V1_DIRECT_UNIQUENESS; |
581 | case TYPE_DIRENTRY: | 579 | case TYPE_DIRENTRY: |
582 | return V1_DIRENTRY_UNIQUENESS; | 580 | return V1_DIRENTRY_UNIQUENESS; |
583 | default: | ||
584 | reiserfs_warning(NULL, "vs-501", "unknown type %d", type); | ||
585 | case TYPE_ANY: | 581 | case TYPE_ANY: |
582 | default: | ||
586 | return V1_ANY_UNIQUENESS; | 583 | return V1_ANY_UNIQUENESS; |
587 | } | 584 | } |
588 | } | 585 | } |