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
11d100d9
Commit
11d100d9
authored
Oct 04, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coda_revalidate_inode(): switch to passing inode...
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
b61625d2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
fs/coda/coda_linux.h
fs/coda/coda_linux.h
+1
-1
fs/coda/dir.c
fs/coda/dir.c
+1
-2
fs/coda/inode.c
fs/coda/inode.c
+1
-1
No files found.
fs/coda/coda_linux.h
View file @
11d100d9
...
@@ -40,7 +40,7 @@ extern const struct file_operations coda_ioctl_operations;
...
@@ -40,7 +40,7 @@ extern const struct file_operations coda_ioctl_operations;
int
coda_open
(
struct
inode
*
i
,
struct
file
*
f
);
int
coda_open
(
struct
inode
*
i
,
struct
file
*
f
);
int
coda_release
(
struct
inode
*
i
,
struct
file
*
f
);
int
coda_release
(
struct
inode
*
i
,
struct
file
*
f
);
int
coda_permission
(
struct
inode
*
inode
,
int
mask
);
int
coda_permission
(
struct
inode
*
inode
,
int
mask
);
int
coda_revalidate_inode
(
struct
dentry
*
);
int
coda_revalidate_inode
(
struct
inode
*
);
int
coda_getattr
(
struct
vfsmount
*
,
struct
dentry
*
,
struct
kstat
*
);
int
coda_getattr
(
struct
vfsmount
*
,
struct
dentry
*
,
struct
kstat
*
);
int
coda_setattr
(
struct
dentry
*
,
struct
iattr
*
);
int
coda_setattr
(
struct
dentry
*
,
struct
iattr
*
);
...
...
fs/coda/dir.c
View file @
11d100d9
...
@@ -563,13 +563,12 @@ static int coda_dentry_delete(const struct dentry * dentry)
...
@@ -563,13 +563,12 @@ static int coda_dentry_delete(const struct dentry * dentry)
* cache manager Venus issues a downcall to the kernel when this
* cache manager Venus issues a downcall to the kernel when this
* happens
* happens
*/
*/
int
coda_revalidate_inode
(
struct
dentry
*
dentry
)
int
coda_revalidate_inode
(
struct
inode
*
inode
)
{
{
struct
coda_vattr
attr
;
struct
coda_vattr
attr
;
int
error
;
int
error
;
int
old_mode
;
int
old_mode
;
ino_t
old_ino
;
ino_t
old_ino
;
struct
inode
*
inode
=
dentry
->
d_inode
;
struct
coda_inode_info
*
cii
=
ITOC
(
inode
);
struct
coda_inode_info
*
cii
=
ITOC
(
inode
);
if
(
!
cii
->
c_flags
)
if
(
!
cii
->
c_flags
)
...
...
fs/coda/inode.c
View file @
11d100d9
...
@@ -257,7 +257,7 @@ static void coda_evict_inode(struct inode *inode)
...
@@ -257,7 +257,7 @@ static void coda_evict_inode(struct inode *inode)
int
coda_getattr
(
struct
vfsmount
*
mnt
,
struct
dentry
*
dentry
,
struct
kstat
*
stat
)
int
coda_getattr
(
struct
vfsmount
*
mnt
,
struct
dentry
*
dentry
,
struct
kstat
*
stat
)
{
{
int
err
=
coda_revalidate_inode
(
dentry
);
int
err
=
coda_revalidate_inode
(
dentry
->
d_inode
);
if
(
!
err
)
if
(
!
err
)
generic_fillattr
(
dentry
->
d_inode
,
stat
);
generic_fillattr
(
dentry
->
d_inode
,
stat
);
return
err
;
return
err
;
...
...
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