diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 3510e2ca40d2..e13d2233ff8c 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -2989,9 +2989,10 @@ check_for_locks(struct file *filp, struct nfs4_stateowner *lowner) | |||
2989 | 2989 | ||
2990 | lock_kernel(); | 2990 | lock_kernel(); |
2991 | for (flpp = &inode->i_flock; *flpp != NULL; flpp = &(*flpp)->fl_next) { | 2991 | for (flpp = &inode->i_flock; *flpp != NULL; flpp = &(*flpp)->fl_next) { |
2992 | if ((*flpp)->fl_owner == (fl_owner_t)lowner) | 2992 | if ((*flpp)->fl_owner == (fl_owner_t)lowner) { |
2993 | status = 1; | 2993 | status = 1; |
2994 | goto out; | 2994 | goto out; |
2995 | } | ||
2995 | } | 2996 | } |
2996 | out: | 2997 | out: |
2997 | unlock_kernel(); | 2998 | unlock_kernel(); |