NFSD: Get reference of lockowner when coping file_lock
authorKinglong Mee <kinglongmee@gmail.com>
Fri, 22 Aug 2014 14:18:44 +0000 (10:18 -0400)
committerJeff Layton <jlayton@primarydata.com>
Tue, 9 Sep 2014 20:01:09 +0000 (16:01 -0400)
commitaef9583b234a4ecdbcaf2c3024f29d4244b18e83
treea06c0982c3aa88126018bcd57d714da003fc59d0
parentb5971afa0b33361667bc88f3e0eb3fc31f778dc6
NFSD: Get reference of lockowner when coping file_lock

v5: using nfs4_get_stateowner() instead of an inline function
v3: Update based on Jeff's comments
v2: Fix bad using of struct file_lock_operations for handle the owner

Acked-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
fs/nfsd/nfs4state.c