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
407938e7
Commit
407938e7
authored
Jun 25, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LOOKUP_CREATE and LOOKUP_RENAME_TARGET can be set only on the last step
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
dd7dd556
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
+6
-12
fs/cifs/dir.c
fs/cifs/dir.c
+2
-4
fs/fat/namei_vfat.c
fs/fat/namei_vfat.c
+2
-4
fs/jfs/namei.c
fs/jfs/namei.c
+2
-4
No files found.
fs/cifs/dir.c
View file @
407938e7
...
...
@@ -663,10 +663,8 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd)
* case sensitive name which is specified by user if this is
* for creation.
*/
if
(
!
(
nd
->
flags
&
(
LOOKUP_CONTINUE
|
LOOKUP_PARENT
)))
{
if
(
nd
->
flags
&
(
LOOKUP_CREATE
|
LOOKUP_RENAME_TARGET
))
return
0
;
}
if
(
nd
->
flags
&
(
LOOKUP_CREATE
|
LOOKUP_RENAME_TARGET
))
return
0
;
if
(
time_after
(
jiffies
,
direntry
->
d_time
+
HZ
)
||
!
lookupCacheEnabled
)
return
0
;
...
...
fs/fat/namei_vfat.c
View file @
407938e7
...
...
@@ -82,10 +82,8 @@ static int vfat_revalidate_ci(struct dentry *dentry, struct nameidata *nd)
* case sensitive name which is specified by user if this is
* for creation.
*/
if
(
!
(
nd
->
flags
&
(
LOOKUP_CONTINUE
|
LOOKUP_PARENT
)))
{
if
(
nd
->
flags
&
(
LOOKUP_CREATE
|
LOOKUP_RENAME_TARGET
))
return
0
;
}
if
(
nd
->
flags
&
(
LOOKUP_CREATE
|
LOOKUP_RENAME_TARGET
))
return
0
;
return
vfat_revalidate_shortname
(
dentry
);
}
...
...
fs/jfs/namei.c
View file @
407938e7
...
...
@@ -1624,10 +1624,8 @@ static int jfs_ci_revalidate(struct dentry *dentry, struct nameidata *nd)
* case sensitive name which is specified by user if this is
* for creation.
*/
if
(
!
(
nd
->
flags
&
(
LOOKUP_CONTINUE
|
LOOKUP_PARENT
)))
{
if
(
nd
->
flags
&
(
LOOKUP_CREATE
|
LOOKUP_RENAME_TARGET
))
return
0
;
}
if
(
nd
->
flags
&
(
LOOKUP_CREATE
|
LOOKUP_RENAME_TARGET
))
return
0
;
return
1
;
}
...
...
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