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
31b7c1ab
Commit
31b7c1ab
authored
Feb 08, 2016
by
Martin Brandenburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
orangefs: Use d_time to avoid excessive lookups
Signed-off-by:
Martin Brandenburg
<
martin@omnibond.com
>
parent
f7b32e4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
fs/orangefs/dcache.c
fs/orangefs/dcache.c
+4
-0
fs/orangefs/namei.c
fs/orangefs/namei.c
+5
-0
No files found.
fs/orangefs/dcache.c
View file @
31b7c1ab
...
...
@@ -73,6 +73,7 @@ static int orangefs_revalidate_lookup(struct dentry *dentry)
}
}
dentry
->
d_time
=
jiffies
+
HZ
;
ret
=
1
;
out_release_op:
op_release
(
new_op
);
...
...
@@ -94,6 +95,9 @@ static int orangefs_d_revalidate(struct dentry *dentry, unsigned int flags)
{
int
ret
;
if
(
dentry
->
d_time
>
jiffies
)
return
1
;
if
(
flags
&
LOOKUP_RCU
)
return
-
ECHILD
;
...
...
fs/orangefs/namei.c
View file @
31b7c1ab
...
...
@@ -72,6 +72,7 @@ static int orangefs_create(struct inode *dir,
d_instantiate
(
dentry
,
inode
);
unlock_new_inode
(
inode
);
dentry
->
d_time
=
jiffies
+
HZ
;
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: dentry instantiated for %s
\n
"
,
...
...
@@ -181,6 +182,8 @@ static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry,
goto
out
;
}
dentry
->
d_time
=
jiffies
+
HZ
;
inode
=
orangefs_iget
(
dir
->
i_sb
,
&
new_op
->
downcall
.
resp
.
lookup
.
refn
);
if
(
IS_ERR
(
inode
))
{
gossip_debug
(
GOSSIP_NAME_DEBUG
,
...
...
@@ -316,6 +319,7 @@ static int orangefs_symlink(struct inode *dir,
d_instantiate
(
dentry
,
inode
);
unlock_new_inode
(
inode
);
dentry
->
d_time
=
jiffies
+
HZ
;
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"Inode (Symlink) %pU -> %s
\n
"
,
...
...
@@ -378,6 +382,7 @@ static int orangefs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode
d_instantiate
(
dentry
,
inode
);
unlock_new_inode
(
inode
);
dentry
->
d_time
=
jiffies
+
HZ
;
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"Inode (Directory) %pU -> %s
\n
"
,
...
...
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