Skip to content

Commit fc81af5

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
NFS: Remove the BKL from nfs_link()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent f1e2eda commit fc81af5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/nfs/dir.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,14 +1549,12 @@ nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
15491549
old_dentry->d_parent->d_name.name, old_dentry->d_name.name,
15501550
dentry->d_parent->d_name.name, dentry->d_name.name);
15511551

1552-
lock_kernel();
15531552
d_drop(dentry);
15541553
error = NFS_PROTO(dir)->link(inode, dir, &dentry->d_name);
15551554
if (error == 0) {
15561555
atomic_inc(&inode->i_count);
15571556
d_add(dentry, inode);
15581557
}
1559-
unlock_kernel();
15601558
return error;
15611559
}
15621560

0 commit comments

Comments
 (0)