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
104648ad
Commit
104648ad
authored
Mar 18, 2010
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: reduce build_path debug output
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
31459fe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
fs/ceph/mds_client.c
fs/ceph/mds_client.c
+4
-6
No files found.
fs/ceph/mds_client.c
View file @
104648ad
...
...
@@ -1268,7 +1268,7 @@ char *ceph_mdsc_build_path(struct dentry *dentry, int *plen, u64 *base,
struct
inode
*
inode
=
temp
->
d_inode
;
if
(
inode
&&
ceph_snap
(
inode
)
==
CEPH_SNAPDIR
)
{
dout
(
"build_path
_dentry
path+%d: %p SNAPDIR
\n
"
,
dout
(
"build_path path+%d: %p SNAPDIR
\n
"
,
pos
,
temp
);
}
else
if
(
stop_on_nosnap
&&
inode
&&
ceph_snap
(
inode
)
==
CEPH_NOSNAP
)
{
...
...
@@ -1279,20 +1279,18 @@ char *ceph_mdsc_build_path(struct dentry *dentry, int *plen, u64 *base,
break
;
strncpy
(
path
+
pos
,
temp
->
d_name
.
name
,
temp
->
d_name
.
len
);
dout
(
"build_path_dentry path+%d: %p '%.*s'
\n
"
,
pos
,
temp
,
temp
->
d_name
.
len
,
path
+
pos
);
}
if
(
pos
)
path
[
--
pos
]
=
'/'
;
temp
=
temp
->
d_parent
;
if
(
temp
==
NULL
)
{
pr_err
(
"build_path
_dentry
corrupt dentry
\n
"
);
pr_err
(
"build_path corrupt dentry
\n
"
);
kfree
(
path
);
return
ERR_PTR
(
-
EINVAL
);
}
}
if
(
pos
!=
0
)
{
pr_err
(
"build_path
_dentry
did not end path lookup where "
pr_err
(
"build_path did not end path lookup where "
"expected, namelen is %d, pos is %d
\n
"
,
len
,
pos
);
/* presumably this is only possible if racing with a
rename of one of the parent directories (we can not
...
...
@@ -1304,7 +1302,7 @@ char *ceph_mdsc_build_path(struct dentry *dentry, int *plen, u64 *base,
*
base
=
ceph_ino
(
temp
->
d_inode
);
*
plen
=
len
;
dout
(
"build_path
_dentry
on %p %d built %llx '%.*s'
\n
"
,
dout
(
"build_path on %p %d built %llx '%.*s'
\n
"
,
dentry
,
atomic_read
(
&
dentry
->
d_count
),
*
base
,
len
,
path
);
return
path
;
}
...
...
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