Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d9699f17
Commit
d9699f17
authored
Jul 31, 2003
by
Alan Cox
Committed by
Linus Torvalds
Jul 31, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] use invalid not illegal in reiserfs
(Steven Cole)
parent
4a397dde
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
fs/reiserfs/do_balan.c
fs/reiserfs/do_balan.c
+2
-2
fs/reiserfs/fix_node.c
fs/reiserfs/fix_node.c
+1
-1
fs/reiserfs/stree.c
fs/reiserfs/stree.c
+10
-10
No files found.
fs/reiserfs/do_balan.c
View file @
d9699f17
...
...
@@ -376,7 +376,7 @@ static int balance_leaf (struct tree_balance * tb,
if
(
is_direntry_le_ih
(
B_N_PITEM_HEAD
(
tbS0
,
item_pos
)))
{
RFALSE
(
zeros_num
,
"PAP-12090: i
llegal
parameter in case of a directory"
);
"PAP-12090: i
nvalid
parameter in case of a directory"
);
/* directory item */
if
(
tb
->
lbytes
>
pos_in_item
)
{
/* new directory entry falls into L[0] */
...
...
@@ -646,7 +646,7 @@ static int balance_leaf (struct tree_balance * tb,
int
entry_count
;
RFALSE
(
zeros_num
,
"PAP-12145: i
llegal paramet
r in case of a directory"
);
"PAP-12145: i
nvalid paramete
r in case of a directory"
);
entry_count
=
I_ENTRY_COUNT
(
B_N_PITEM_HEAD
(
tbS0
,
item_pos
));
if
(
entry_count
-
tb
->
rbytes
<
pos_in_item
)
/* new directory entry falls into R[0] */
...
...
fs/reiserfs/fix_node.c
View file @
d9699f17
...
...
@@ -1847,7 +1847,7 @@ static int get_direct_parent(
if
(
n_path_offset
<=
FIRST_PATH_ELEMENT_OFFSET
)
{
RFALSE
(
n_path_offset
<
FIRST_PATH_ELEMENT_OFFSET
-
1
,
"PAP-8260: i
llegal
offset in the path"
);
"PAP-8260: i
nvalid
offset in the path"
);
if
(
PATH_OFFSET_PBUFFER
(
p_s_path
,
FIRST_PATH_ELEMENT_OFFSET
)
->
b_blocknr
==
SB_ROOT_BLOCK
(
p_s_tb
->
tb_sb
)
)
{
...
...
fs/reiserfs/stree.c
View file @
d9699f17
...
...
@@ -311,7 +311,7 @@ inline const struct key * get_lkey (
struct
buffer_head
*
p_s_parent
;
RFALSE
(
n_path_offset
<
FIRST_PATH_ELEMENT_OFFSET
,
"PAP-5010: i
llegal
offset in the path"
);
"PAP-5010: i
nvalid
offset in the path"
);
/* While not higher in path than first element. */
while
(
n_path_offset
--
>
FIRST_PATH_ELEMENT_OFFSET
)
{
...
...
@@ -351,7 +351,7 @@ inline const struct key * get_rkey (
struct
buffer_head
*
p_s_parent
;
RFALSE
(
n_path_offset
<
FIRST_PATH_ELEMENT_OFFSET
,
"PAP-5030: i
llegal
offset in the path"
);
"PAP-5030: i
nvalid
offset in the path"
);
while
(
n_path_offset
--
>
FIRST_PATH_ELEMENT_OFFSET
)
{
...
...
@@ -393,7 +393,7 @@ static inline int key_in_buffer (
RFALSE
(
!
p_s_key
||
p_s_chk_path
->
path_length
<
FIRST_PATH_ELEMENT_OFFSET
||
p_s_chk_path
->
path_length
>
MAX_HEIGHT
,
"PAP-5050: pointer to the key(%p) is NULL or i
llegal
path length(%d)"
,
"PAP-5050: pointer to the key(%p) is NULL or i
nvalid
path length(%d)"
,
p_s_key
,
p_s_chk_path
->
path_length
);
RFALSE
(
!
PATH_PLAST_BUFFER
(
p_s_chk_path
)
->
b_bdev
,
"PAP-5060: device must not be NODEV"
);
...
...
@@ -430,7 +430,7 @@ void decrement_counters_in_path (
RFALSE
(
n_path_offset
<
ILLEGAL_PATH_ELEMENT_OFFSET
||
n_path_offset
>
EXTENDED_MAX_HEIGHT
-
1
,
"PAP-5080: i
llegal
path offset of %d"
,
n_path_offset
);
"PAP-5080: i
nvalid
path offset of %d"
,
n_path_offset
);
while
(
n_path_offset
>
ILLEGAL_PATH_ELEMENT_OFFSET
)
{
struct
buffer_head
*
bh
;
...
...
@@ -461,7 +461,7 @@ void pathrelse_and_restore (
int
n_path_offset
=
p_s_search_path
->
path_length
;
RFALSE
(
n_path_offset
<
ILLEGAL_PATH_ELEMENT_OFFSET
,
"clm-4000: i
llegal
path offset"
);
"clm-4000: i
nvalid
path offset"
);
while
(
n_path_offset
>
ILLEGAL_PATH_ELEMENT_OFFSET
)
{
reiserfs_restore_prepared_buffer
(
s
,
PATH_OFFSET_PBUFFER
(
p_s_search_path
,
...
...
@@ -478,7 +478,7 @@ void pathrelse (
int
n_path_offset
=
p_s_search_path
->
path_length
;
RFALSE
(
n_path_offset
<
ILLEGAL_PATH_ELEMENT_OFFSET
,
"PAP-5090: i
llegal
path offset"
);
"PAP-5090: i
nvalid
path offset"
);
while
(
n_path_offset
>
ILLEGAL_PATH_ELEMENT_OFFSET
)
brelse
(
PATH_OFFSET_PBUFFER
(
p_s_search_path
,
n_path_offset
--
));
...
...
@@ -1044,7 +1044,7 @@ static char prepare_for_delete_or_cut(
RFALSE
(
!
is_indirect_le_ih
(
&
s_ih
)
||
!
n_unfm_number
||
pos_in_item
(
p_s_path
)
+
1
!=
n_unfm_number
,
"PAP-5240: i
llegal
item %h "
"PAP-5240: i
nvalid
item %h "
"n_unfm_number = %d *p_n_pos_in_item = %d"
,
&
s_ih
,
n_unfm_number
,
pos_in_item
(
p_s_path
));
...
...
@@ -1065,7 +1065,7 @@ static char prepare_for_delete_or_cut(
pos_in_item
(
p_s_path
)
=
(
n_new_file_length
+
n_blk_size
-
le_ih_k_offset
(
&
s_ih
)
)
>>
p_s_sb
->
s_blocksize_bits
;
RFALSE
(
pos_in_item
(
p_s_path
)
>
n_unfm_number
,
"PAP-5250: i
llegal
position in the item"
);
"PAP-5250: i
nvalid
position in the item"
);
/* Either convert last unformatted node of indirect item to direct item or increase
its free space. */
...
...
@@ -1081,7 +1081,7 @@ static char prepare_for_delete_or_cut(
}
RFALSE
(
n_unfm_number
<=
pos_in_item
(
p_s_path
),
"PAP-5260: i
llegal
position in the indirect item"
);
"PAP-5260: i
nvalid
position in the indirect item"
);
/* pointers to be cut */
n_unfm_number
-=
pos_in_item
(
p_s_path
);
...
...
@@ -1573,7 +1573,7 @@ int reiserfs_cut_from_item (struct reiserfs_transaction_handle *th,
/* go ahead and perform balancing */
RFALSE
(
c_mode
==
M_PASTE
||
c_mode
==
M_INSERT
,
"i
llegal
mode"
);
RFALSE
(
c_mode
==
M_PASTE
||
c_mode
==
M_INSERT
,
"i
nvalid
mode"
);
/* Calculate number of bytes that need to be cut from the item. */
if
(
retval2
==
-
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment