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
Kirill Smelkov
linux
Commits
91f43975
Commit
91f43975
authored
Jun 28, 2004
by
Steve French
Committed by
Steve French
Jun 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hash cifs inodes
Signed-off-by: Steve French (sfrench@us.ibm.com)
parent
6e67e940
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
fs/cifs/file.c
fs/cifs/file.c
+2
-0
fs/cifs/inode.c
fs/cifs/inode.c
+6
-5
No files found.
fs/cifs/file.c
View file @
91f43975
...
...
@@ -1534,6 +1534,7 @@ construct_dentry(struct qstr *qstring, struct file *file,
if
(
*
ptmp_inode
==
NULL
)
return
;
d_instantiate
(
tmp_dentry
,
*
ptmp_inode
);
insert_inode_hash
(
*
ptmp_inode
);
}
}
else
{
tmp_dentry
=
d_alloc
(
file
->
f_dentry
,
qstring
);
...
...
@@ -1549,6 +1550,7 @@ construct_dentry(struct qstr *qstring, struct file *file,
return
;
d_instantiate
(
tmp_dentry
,
*
ptmp_inode
);
d_rehash
(
tmp_dentry
);
insert_inode_hash
(
*
ptmp_inode
);
}
tmp_dentry
->
d_time
=
jiffies
;
...
...
fs/cifs/inode.c
View file @
91f43975
...
...
@@ -80,9 +80,9 @@ cifs_get_inode_info_unix(struct inode **pinode,
/* get new inode */
if
(
*
pinode
==
NULL
)
{
*
pinode
=
new_inode
(
sb
);
}
if
(
*
pinode
==
NULL
)
{
if
(
*
pinode
==
NULL
)
return
-
ENOMEM
;
insert_inode_hash
(
*
pinode
);
}
inode
=
*
pinode
;
...
...
@@ -235,9 +235,10 @@ cifs_get_inode_info(struct inode **pinode, const unsigned char *search_path,
/* get new inode */
if
(
*
pinode
==
NULL
)
{
*
pinode
=
new_inode
(
sb
);
}
if
(
*
pinode
==
NULL
)
return
-
ENOMEM
;
insert_inode_hash
(
*
pinode
);
}
inode
=
*
pinode
;
cifsInfo
=
CIFS_I
(
inode
);
pfindData
->
Attributes
=
le32_to_cpu
(
pfindData
->
Attributes
);
...
...
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