Move locks API users to locks_lock_inode_wait()

Instead of having users check for FL_POSIX or FL_FLOCK to call the correct
locks API function, use the check within locks_lock_inode_wait().  This
allows for some later cleanup.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
This commit is contained in:
Benjamin Coddington
2015-10-22 13:38:14 -04:00
کامیت شده توسط Jeff Layton
والد e55c34a66f
کامیت 4f6563677a
12فایلهای تغییر یافته به همراه22 افزوده شده و 59 حذف شده

مشاهده پرونده

@@ -2189,7 +2189,7 @@ static int fuse_file_flock(struct file *file, int cmd, struct file_lock *fl)
int err;
if (fc->no_flock) {
err = flock_lock_file_wait(file, fl);
err = locks_lock_file_wait(file, fl);
} else {
struct fuse_file *ff = file->private_data;