mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 13:40:53 +07:00
nfs: remove unnecessary check for NULL inode->i_flock from nfs_delegation_claim_locks
The second check was added in commit 65b62a29
but it will never be true.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
7a8203d8cb
commit
314d7cc05d
@ -70,11 +70,9 @@ static int nfs_delegation_claim_locks(struct nfs_open_context *ctx, struct nfs4_
|
|||||||
struct file_lock *fl;
|
struct file_lock *fl;
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
||||||
if (inode->i_flock == NULL)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (inode->i_flock == NULL)
|
if (inode->i_flock == NULL)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
/* Protect inode->i_flock using the file locks lock */
|
/* Protect inode->i_flock using the file locks lock */
|
||||||
lock_flocks();
|
lock_flocks();
|
||||||
for (fl = inode->i_flock; fl != NULL; fl = fl->fl_next) {
|
for (fl = inode->i_flock; fl != NULL; fl = fl->fl_next) {
|
||||||
|
Loading…
Reference in New Issue
Block a user