[PATCH v4 06/13] locks: consolidate common code in the flock_to_posix_lock routines

2013-12-19 Thread Jeff Layton
From: "J. Bruce Fields" Currently, there's a lot of copy and paste between the two. Add some functions to do the initialization of the file_lock from values passed in, and turn the flock/flock64 variants of those functions into wrappers around them. Signed-off-by: Jeff Layton Signed-off-by:

[PATCH v4 06/13] locks: consolidate common code in the flock_to_posix_lock routines

2013-12-19 Thread Jeff Layton
From: J. Bruce Fields bfie...@fieldses.org Currently, there's a lot of copy and paste between the two. Add some functions to do the initialization of the file_lock from values passed in, and turn the flock/flock64 variants of those functions into wrappers around them. Signed-off-by: Jeff Layton