aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2008-06-11 13:26:14 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-07-15 18:10:51 -0400
commitfa6dc9dc59c3a76fd209a97c8cf37395980fb903 (patch)
tree3af530da9d0a21f385007afb34bc058e3f6cab21 /fs/nfs/inode.c
parenta3d01454bc58b5a211ef64a7670572a40b71e682 (diff)
NFS: Remove attribute update related BKL references
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 3adabd154779..df23f987da6b 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -370,7 +370,6 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
370 if ((attr->ia_valid & ~ATTR_FILE) == 0) 370 if ((attr->ia_valid & ~ATTR_FILE) == 0)
371 return 0; 371 return 0;
372 372
373 lock_kernel();
374 /* Write all dirty data */ 373 /* Write all dirty data */
375 if (S_ISREG(inode->i_mode)) { 374 if (S_ISREG(inode->i_mode)) {
376 filemap_write_and_wait(inode->i_mapping); 375 filemap_write_and_wait(inode->i_mapping);
@@ -384,7 +383,6 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
384 error = NFS_PROTO(inode)->setattr(dentry, &fattr, attr); 383 error = NFS_PROTO(inode)->setattr(dentry, &fattr, attr);
385 if (error == 0) 384 if (error == 0)
386 nfs_refresh_inode(inode, &fattr); 385 nfs_refresh_inode(inode, &fattr);
387 unlock_kernel();
388 return error; 386 return error;
389} 387}
390 388
@@ -700,7 +698,6 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode)
700 inode->i_sb->s_id, (long long)NFS_FILEID(inode)); 698 inode->i_sb->s_id, (long long)NFS_FILEID(inode));
701 699
702 nfs_inc_stats(inode, NFSIOS_INODEREVALIDATE); 700 nfs_inc_stats(inode, NFSIOS_INODEREVALIDATE);
703 lock_kernel();
704 if (is_bad_inode(inode)) 701 if (is_bad_inode(inode))
705 goto out_nowait; 702 goto out_nowait;
706 if (NFS_STALE(inode)) 703 if (NFS_STALE(inode))
@@ -749,7 +746,6 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode)
749 nfs_wake_up_inode(inode); 746 nfs_wake_up_inode(inode);
750 747
751 out_nowait: 748 out_nowait:
752 unlock_kernel();
753 return status; 749 return status;
754} 750}
755 751