Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
fa6dc9dc
Commit
fa6dc9dc
authored
Jun 11, 2008
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Remove attribute update related BKL references
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
a3d01454
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
fs/nfs/inode.c
fs/nfs/inode.c
+0
-4
fs/nfs/super.c
fs/nfs/super.c
+0
-4
No files found.
fs/nfs/inode.c
View file @
fa6dc9dc
...
@@ -370,7 +370,6 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
...
@@ -370,7 +370,6 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
if
((
attr
->
ia_valid
&
~
ATTR_FILE
)
==
0
)
if
((
attr
->
ia_valid
&
~
ATTR_FILE
)
==
0
)
return
0
;
return
0
;
lock_kernel
();
/* Write all dirty data */
/* Write all dirty data */
if
(
S_ISREG
(
inode
->
i_mode
))
{
if
(
S_ISREG
(
inode
->
i_mode
))
{
filemap_write_and_wait
(
inode
->
i_mapping
);
filemap_write_and_wait
(
inode
->
i_mapping
);
...
@@ -384,7 +383,6 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
...
@@ -384,7 +383,6 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
error
=
NFS_PROTO
(
inode
)
->
setattr
(
dentry
,
&
fattr
,
attr
);
error
=
NFS_PROTO
(
inode
)
->
setattr
(
dentry
,
&
fattr
,
attr
);
if
(
error
==
0
)
if
(
error
==
0
)
nfs_refresh_inode
(
inode
,
&
fattr
);
nfs_refresh_inode
(
inode
,
&
fattr
);
unlock_kernel
();
return
error
;
return
error
;
}
}
...
@@ -700,7 +698,6 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode)
...
@@ -700,7 +698,6 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode)
inode
->
i_sb
->
s_id
,
(
long
long
)
NFS_FILEID
(
inode
));
inode
->
i_sb
->
s_id
,
(
long
long
)
NFS_FILEID
(
inode
));
nfs_inc_stats
(
inode
,
NFSIOS_INODEREVALIDATE
);
nfs_inc_stats
(
inode
,
NFSIOS_INODEREVALIDATE
);
lock_kernel
();
if
(
is_bad_inode
(
inode
))
if
(
is_bad_inode
(
inode
))
goto
out_nowait
;
goto
out_nowait
;
if
(
NFS_STALE
(
inode
))
if
(
NFS_STALE
(
inode
))
...
@@ -749,7 +746,6 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode)
...
@@ -749,7 +746,6 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode)
nfs_wake_up_inode
(
inode
);
nfs_wake_up_inode
(
inode
);
out_nowait:
out_nowait:
unlock_kernel
();
return
status
;
return
status
;
}
}
...
...
fs/nfs/super.c
View file @
fa6dc9dc
...
@@ -374,8 +374,6 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
...
@@ -374,8 +374,6 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
};
};
int
error
;
int
error
;
lock_kernel
();
error
=
server
->
nfs_client
->
rpc_ops
->
statfs
(
server
,
fh
,
&
res
);
error
=
server
->
nfs_client
->
rpc_ops
->
statfs
(
server
,
fh
,
&
res
);
if
(
error
<
0
)
if
(
error
<
0
)
goto
out_err
;
goto
out_err
;
...
@@ -407,12 +405,10 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
...
@@ -407,12 +405,10 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
buf
->
f_namelen
=
server
->
namelen
;
buf
->
f_namelen
=
server
->
namelen
;
unlock_kernel
();
return
0
;
return
0
;
out_err:
out_err:
dprintk
(
"%s: statfs error = %d
\n
"
,
__func__
,
-
error
);
dprintk
(
"%s: statfs error = %d
\n
"
,
__func__
,
-
error
);
unlock_kernel
();
return
error
;
return
error
;
}
}
...
...
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