1 From: Jeff Mahoney <jeffm@suse.com>
2 Subject: [PATCH] reiserfs: eliminate reiserfs_warning from uniqueness functions
4 uniqueness2type and type2uniquness issue a warning when the value is
5 unknown. When called from reiserfs_warning, this causes a re-entrancy
6 problem and deadlocks on the error buffer lock.
8 Signed-off-by: Jeff Mahoney <jeffm@suse.com>
10 include/linux/reiserfs_fs.h | 7 ++-----
11 1 file changed, 2 insertions(+), 5 deletions(-)
13 --- a/include/linux/reiserfs_fs.h
14 +++ b/include/linux/reiserfs_fs.h
15 @@ -560,10 +560,8 @@ static inline int uniqueness2type(__u32
17 case V1_DIRENTRY_UNIQUENESS:
20 - reiserfs_warning(NULL, "vs-500", "unknown uniqueness %d",
22 case V1_ANY_UNIQUENESS:
27 @@ -580,9 +578,8 @@ static inline __u32 type2uniqueness(int
28 return V1_DIRECT_UNIQUENESS;
30 return V1_DIRENTRY_UNIQUENESS;
32 - reiserfs_warning(NULL, "vs-501", "unknown type %d", type);
35 return V1_ANY_UNIQUENESS;