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
73a3d07c
Commit
73a3d07c
authored
May 25, 2006
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Clean up inode metadata updates
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
9d1e9232
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
15 deletions
+2
-15
fs/nfs/inode.c
fs/nfs/inode.c
+0
-12
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+1
-1
include/linux/nfs_xdr.h
include/linux/nfs_xdr.h
+1
-2
No files found.
fs/nfs/inode.c
View file @
73a3d07c
...
...
@@ -1360,12 +1360,6 @@ static void nfs_wcc_update_inode(struct inode *inode, struct nfs_fattr *fattr)
{
struct
nfs_inode
*
nfsi
=
NFS_I
(
inode
);
if
((
fattr
->
valid
&
NFS_ATTR_PRE_CHANGE
)
!=
0
&&
nfsi
->
change_attr
==
fattr
->
pre_change_attr
)
{
nfsi
->
change_attr
=
fattr
->
change_attr
;
nfsi
->
cache_change_attribute
=
jiffies
;
}
/* If we have atomic WCC data, we may update some attributes */
if
((
fattr
->
valid
&
NFS_ATTR_WCC
)
!=
0
)
{
if
(
timespec_equal
(
&
inode
->
i_ctime
,
&
fattr
->
pre_ctime
))
{
...
...
@@ -1399,9 +1393,6 @@ static int nfs_check_inode_attributes(struct inode *inode, struct nfs_fattr *fat
int
data_unstable
;
if
((
fattr
->
valid
&
NFS_ATTR_FATTR
)
==
0
)
return
0
;
/* Has the inode gone and changed behind our back? */
if
(
nfsi
->
fileid
!=
fattr
->
fileid
||
(
inode
->
i_mode
&
S_IFMT
)
!=
(
fattr
->
mode
&
S_IFMT
))
{
...
...
@@ -1525,9 +1516,6 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr)
__FUNCTION__
,
inode
->
i_sb
->
s_id
,
inode
->
i_ino
,
atomic_read
(
&
inode
->
i_count
),
fattr
->
valid
);
if
((
fattr
->
valid
&
NFS_ATTR_FATTR
)
==
0
)
return
0
;
if
(
nfsi
->
fileid
!=
fattr
->
fileid
)
goto
out_fileid
;
...
...
fs/nfs/nfs4proc.c
View file @
73a3d07c
...
...
@@ -2008,7 +2008,7 @@ static int _nfs4_proc_link(struct inode *inode, struct inode *dir, struct qstr *
if
(
!
status
)
{
update_changeattr
(
dir
,
&
res
.
cinfo
);
nfs_post_op_update_inode
(
dir
,
res
.
dir_attr
);
nfs_
refresh
_inode
(
inode
,
res
.
fattr
);
nfs_
post_op_update
_inode
(
inode
,
res
.
fattr
);
}
return
status
;
...
...
include/linux/nfs_xdr.h
View file @
73a3d07c
...
...
@@ -57,8 +57,7 @@ struct nfs_fattr {
#define NFS_ATTR_WCC 0x0001
/* pre-op WCC data */
#define NFS_ATTR_FATTR 0x0002
/* post-op attributes */
#define NFS_ATTR_FATTR_V3 0x0004
/* NFSv3 attributes */
#define NFS_ATTR_FATTR_V4 0x0008
#define NFS_ATTR_PRE_CHANGE 0x0010
#define NFS_ATTR_FATTR_V4 0x0008
/* NFSv4 change attribute */
/*
* Info on the file system
...
...
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