diff options
author | Benjamin Coddington <bcodding@redhat.com> | 2015-10-22 19:38:14 +0200 |
---|---|---|
committer | Jeff Layton <jeff.layton@primarydata.com> | 2015-10-22 20:57:36 +0200 |
commit | 4f6563677ae833baad8003e14353241bc25da4fc (patch) | |
tree | 6b54bdaa39f67c13cea45933dedc39f138051de9 /fs/cifs | |
parent | locks: introduce locks_lock_inode_wait() (diff) | |
download | linux-4f6563677ae833baad8003e14353241bc25da4fc.tar.xz linux-4f6563677ae833baad8003e14353241bc25da4fc.zip |
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>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index e2a6af1508af..6afdad716561 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -1553,7 +1553,7 @@ cifs_setlk(struct file *file, struct file_lock *flock, __u32 type, out: if (flock->fl_flags & FL_POSIX && !rc) - rc = posix_lock_file_wait(file, flock); + rc = locks_lock_file_wait(file, flock); return rc; } |