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
4bc8f933
Commit
4bc8f933
authored
Apr 20, 2004
by
Steve French
Committed by
Steve French
Apr 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not cache inode metadata when cache time set to 0 (fix hardlink count caching)
parent
12475cc4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
fs/cifs/CHANGES
fs/cifs/CHANGES
+3
-1
fs/cifs/inode.c
fs/cifs/inode.c
+4
-2
No files found.
fs/cifs/CHANGES
View file @
4bc8f933
Version 1.09
Version 1.09
------------
------------
Fix /proc/fs module unload warning message (that could be logged
Fix /proc/fs module unload warning message (that could be logged
to the kernel log)
to the kernel log). Fix intermittent failure in connectathon
test7 (hardlink count not immediately refreshed in case in which
inode metadata can be incorrectly kept cached when time near zero)
Version 1.08
Version 1.08
------------
------------
...
...
fs/cifs/inode.c
View file @
4bc8f933
...
@@ -582,12 +582,14 @@ cifs_revalidate(struct dentry *direntry)
...
@@ -582,12 +582,14 @@ cifs_revalidate(struct dentry *direntry)
full_path
=
build_path_from_dentry
(
direntry
);
full_path
=
build_path_from_dentry
(
direntry
);
cFYI
(
1
,
cFYI
(
1
,
(
"Revalidate
full path: %s for inode 0x%p with count %d dentry: 0x%p d_time %ld at time %ld
"
,
(
"Revalidate
: %s inode 0x%p count %d dentry: 0x%p d_time %ld jiffies %ld
"
,
full_path
,
direntry
->
d_inode
,
full_path
,
direntry
->
d_inode
,
direntry
->
d_inode
->
i_count
.
counter
,
direntry
,
direntry
->
d_inode
->
i_count
.
counter
,
direntry
,
direntry
->
d_time
,
jiffies
));
direntry
->
d_time
,
jiffies
));
if
(
time_before
(
jiffies
,
cifsInode
->
time
+
HZ
)
&&
lookupCacheEnabled
)
{
if
(
cifsInode
->
time
==
0
){
/* was set to zero previously to force revalidate */
}
else
if
(
time_before
(
jiffies
,
cifsInode
->
time
+
HZ
)
&&
lookupCacheEnabled
)
{
if
((
S_ISREG
(
direntry
->
d_inode
->
i_mode
)
==
0
)
||
if
((
S_ISREG
(
direntry
->
d_inode
->
i_mode
)
==
0
)
||
(
direntry
->
d_inode
->
i_nlink
==
1
))
{
(
direntry
->
d_inode
->
i_nlink
==
1
))
{
if
(
full_path
)
if
(
full_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