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
68d9807c
Commit
68d9807c
authored
Aug 20, 2002
by
Oleg Drokin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add displaying of more reiserfs statistical info through /proc interface, by Nikita Danilov
parent
0ee29e60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
fs/reiserfs/procfs.c
fs/reiserfs/procfs.c
+13
-0
fs/reiserfs/stree.c
fs/reiserfs/stree.c
+9
-1
include/linux/reiserfs_fs_sb.h
include/linux/reiserfs_fs_sb.h
+6
-0
No files found.
fs/reiserfs/procfs.c
View file @
68d9807c
...
...
@@ -165,6 +165,12 @@ int reiserfs_super_in_proc( char *buffer, char **start, off_t offset,
"search_by_key_fs_changed:
\t
%lu
\n
"
"search_by_key_restarted:
\t
%lu
\n
"
"insert_item_restarted:
\t
%lu
\n
"
"paste_into_item_restarted:
\t
%lu
\n
"
"cut_from_item_restarted:
\t
%lu
\n
"
"delete_solid_item_restarted:
\t
%lu
\n
"
"delete_item_restarted:
\t
%lu
\n
"
"leaked_oid:
\t
%lu
\n
"
"leaves_removable:
\t
%lu
\n
"
,
...
...
@@ -201,6 +207,13 @@ int reiserfs_super_in_proc( char *buffer, char **start, off_t offset,
SFP
(
search_by_key
),
SFP
(
search_by_key_fs_changed
),
SFP
(
search_by_key_restarted
),
SFP
(
insert_item_restarted
),
SFP
(
paste_into_item_restarted
),
SFP
(
cut_from_item_restarted
),
SFP
(
delete_solid_item_restarted
),
SFP
(
delete_item_restarted
),
SFP
(
leaked_oid
),
SFP
(
leaves_removable
)
);
...
...
fs/reiserfs/stree.c
View file @
68d9807c
...
...
@@ -1245,6 +1245,8 @@ int reiserfs_delete_item (struct reiserfs_transaction_handle *th,
if
(
n_ret_value
!=
REPEAT_SEARCH
)
break
;
PROC_INFO_INC
(
p_s_sb
,
delete_item_restarted
);
// file system changed, repeat search
n_ret_value
=
search_for_position_by_key
(
p_s_sb
,
p_s_item_key
,
p_s_path
);
if
(
n_ret_value
==
IO_ERROR
)
...
...
@@ -1355,8 +1357,10 @@ void reiserfs_delete_solid_item (struct reiserfs_transaction_handle *th,
}
retval
=
fix_nodes
(
M_DELETE
,
&
tb
,
NULL
,
0
);
if
(
retval
==
REPEAT_SEARCH
)
if
(
retval
==
REPEAT_SEARCH
)
{
PROC_INFO_INC
(
th
->
t_super
,
delete_solid_item_restarted
);
continue
;
}
if
(
retval
==
CARRY_ON
)
{
do_balance
(
&
tb
,
0
,
0
,
M_DELETE
);
...
...
@@ -1543,6 +1547,8 @@ int reiserfs_cut_from_item (struct reiserfs_transaction_handle *th,
if
(
n_ret_value
!=
REPEAT_SEARCH
)
break
;
PROC_INFO_INC
(
p_s_sb
,
cut_from_item_restarted
);
n_ret_value
=
search_for_position_by_key
(
p_s_sb
,
p_s_item_key
,
p_s_path
);
if
(
n_ret_value
==
POSITION_FOUND
)
continue
;
...
...
@@ -1810,6 +1816,7 @@ int reiserfs_paste_into_item (struct reiserfs_transaction_handle *th,
while
(
(
retval
=
fix_nodes
(
M_PASTE
,
&
s_paste_balance
,
NULL
,
p_c_body
))
==
REPEAT_SEARCH
)
{
/* file system changed while we were in the fix_nodes */
PROC_INFO_INC
(
th
->
t_super
,
paste_into_item_restarted
);
retval
=
search_for_position_by_key
(
th
->
t_super
,
p_s_key
,
p_s_search_path
);
if
(
retval
==
IO_ERROR
)
{
retval
=
-
EIO
;
...
...
@@ -1860,6 +1867,7 @@ int reiserfs_insert_item(struct reiserfs_transaction_handle *th,
while
(
(
retval
=
fix_nodes
(
M_INSERT
,
&
s_ins_balance
,
p_s_ih
,
p_c_body
))
==
REPEAT_SEARCH
)
{
/* file system changed while we were in the fix_nodes */
PROC_INFO_INC
(
th
->
t_super
,
insert_item_restarted
);
retval
=
search_item
(
th
->
t_super
,
key
,
p_s_path
);
if
(
retval
==
IO_ERROR
)
{
retval
=
-
EIO
;
...
...
include/linux/reiserfs_fs_sb.h
View file @
68d9807c
...
...
@@ -270,6 +270,12 @@ typedef struct reiserfs_proc_info_data
stat_cnt_t
search_by_key_fs_changed
;
stat_cnt_t
search_by_key_restarted
;
stat_cnt_t
insert_item_restarted
;
stat_cnt_t
paste_into_item_restarted
;
stat_cnt_t
cut_from_item_restarted
;
stat_cnt_t
delete_solid_item_restarted
;
stat_cnt_t
delete_item_restarted
;
stat_cnt_t
leaked_oid
;
stat_cnt_t
leaves_removable
;
...
...
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