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
0ccd4802
Commit
0ccd4802
authored
Jul 16, 2010
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] Missing ifdef
Signed-off-by:
Steve French
<
sfrench@us.ibm.com
>
parent
d0e6f44e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
fs/cifs/inode.c
fs/cifs/inode.c
+4
-0
No files found.
fs/cifs/inode.c
View file @
0ccd4802
...
@@ -777,8 +777,10 @@ cifs_iget(struct super_block *sb, struct cifs_fattr *fattr)
...
@@ -777,8 +777,10 @@ cifs_iget(struct super_block *sb, struct cifs_fattr *fattr)
inode
->
i_flags
|=
S_NOATIME
|
S_NOCMTIME
;
inode
->
i_flags
|=
S_NOATIME
|
S_NOCMTIME
;
if
(
inode
->
i_state
&
I_NEW
)
{
if
(
inode
->
i_state
&
I_NEW
)
{
inode
->
i_ino
=
hash
;
inode
->
i_ino
=
hash
;
#ifdef CONFIG_CIFS_FSCACHE
/* initialize per-inode cache cookie pointer */
/* initialize per-inode cache cookie pointer */
CIFS_I
(
inode
)
->
fscache
=
NULL
;
CIFS_I
(
inode
)
->
fscache
=
NULL
;
#endif
unlock_new_inode
(
inode
);
unlock_new_inode
(
inode
);
}
}
}
}
...
@@ -810,8 +812,10 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
...
@@ -810,8 +812,10 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
if
(
!
inode
)
if
(
!
inode
)
return
ERR_PTR
(
-
ENOMEM
);
return
ERR_PTR
(
-
ENOMEM
);
#ifdef CONFIG_CIFS_FSCACHE
/* populate tcon->resource_id */
/* populate tcon->resource_id */
cifs_sb
->
tcon
->
resource_id
=
CIFS_I
(
inode
)
->
uniqueid
;
cifs_sb
->
tcon
->
resource_id
=
CIFS_I
(
inode
)
->
uniqueid
;
#endif
if
(
rc
&&
cifs_sb
->
tcon
->
ipc
)
{
if
(
rc
&&
cifs_sb
->
tcon
->
ipc
)
{
cFYI
(
1
,
"ipc connection - fake read inode"
);
cFYI
(
1
,
"ipc connection - fake read inode"
);
...
...
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