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
f6973c09
Commit
f6973c09
authored
May 20, 2016
by
Yan, Zheng
Committed by
Ilya Dryomov
Jun 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: use i_version to check validity of fscache
Signed-off-by:
Yan, Zheng
<
zyan@redhat.com
>
parent
f7f7e7a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
fs/ceph/cache.c
fs/ceph/cache.c
+3
-0
No files found.
fs/ceph/cache.c
View file @
f6973c09
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "cache.h"
#include "cache.h"
struct
ceph_aux_inode
{
struct
ceph_aux_inode
{
u64
version
;
struct
timespec
mtime
;
struct
timespec
mtime
;
loff_t
size
;
loff_t
size
;
};
};
...
@@ -98,6 +99,7 @@ static uint16_t ceph_fscache_inode_get_aux(const void *cookie_netfs_data,
...
@@ -98,6 +99,7 @@ static uint16_t ceph_fscache_inode_get_aux(const void *cookie_netfs_data,
const
struct
inode
*
inode
=
&
ci
->
vfs_inode
;
const
struct
inode
*
inode
=
&
ci
->
vfs_inode
;
memset
(
&
aux
,
0
,
sizeof
(
aux
));
memset
(
&
aux
,
0
,
sizeof
(
aux
));
aux
.
version
=
ci
->
i_version
;
aux
.
mtime
=
inode
->
i_mtime
;
aux
.
mtime
=
inode
->
i_mtime
;
aux
.
size
=
i_size_read
(
inode
);
aux
.
size
=
i_size_read
(
inode
);
...
@@ -124,6 +126,7 @@ static enum fscache_checkaux ceph_fscache_inode_check_aux(
...
@@ -124,6 +126,7 @@ static enum fscache_checkaux ceph_fscache_inode_check_aux(
return
FSCACHE_CHECKAUX_OBSOLETE
;
return
FSCACHE_CHECKAUX_OBSOLETE
;
memset
(
&
aux
,
0
,
sizeof
(
aux
));
memset
(
&
aux
,
0
,
sizeof
(
aux
));
aux
.
version
=
ci
->
i_version
;
aux
.
mtime
=
inode
->
i_mtime
;
aux
.
mtime
=
inode
->
i_mtime
;
aux
.
size
=
i_size_read
(
inode
);
aux
.
size
=
i_size_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