Skip to content

Commit fa6dc9d

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
NFS: Remove attribute update related BKL references
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent a3d0145 commit fa6dc9d

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

fs/nfs/inode.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
370370
if ((attr->ia_valid & ~ATTR_FILE) == 0)
371371
return 0;
372372

373-
lock_kernel();
374373
/* Write all dirty data */
375374
if (S_ISREG(inode->i_mode)) {
376375
filemap_write_and_wait(inode->i_mapping);
@@ -384,7 +383,6 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
384383
error = NFS_PROTO(inode)->setattr(dentry, &fattr, attr);
385384
if (error == 0)
386385
nfs_refresh_inode(inode, &fattr);
387-
unlock_kernel();
388386
return error;
389387
}
390388

@@ -700,7 +698,6 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode)
700698
inode->i_sb->s_id, (long long)NFS_FILEID(inode));
701699

702700
nfs_inc_stats(inode, NFSIOS_INODEREVALIDATE);
703-
lock_kernel();
704701
if (is_bad_inode(inode))
705702
goto out_nowait;
706703
if (NFS_STALE(inode))
@@ -749,7 +746,6 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode)
749746
nfs_wake_up_inode(inode);
750747

751748
out_nowait:
752-
unlock_kernel();
753749
return status;
754750
}
755751

fs/nfs/super.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,6 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
374374
};
375375
int error;
376376

377-
lock_kernel();
378-
379377
error = server->nfs_client->rpc_ops->statfs(server, fh, &res);
380378
if (error < 0)
381379
goto out_err;
@@ -407,12 +405,10 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
407405

408406
buf->f_namelen = server->namelen;
409407

410-
unlock_kernel();
411408
return 0;
412409

413410
out_err:
414411
dprintk("%s: statfs error = %d\n", __func__, -error);
415-
unlock_kernel();
416412
return error;
417413
}
418414

0 commit comments

Comments
 (0)