summaryrefslogtreecommitdiff
path: root/fs/orangefs/file.c
diff options
context:
space:
mode:
authorMike Marshall <hubcap@omnibond.com>2015-09-24 12:53:05 -0400
committerMike Marshall <hubcap@omnibond.com>2015-10-03 11:44:34 -0400
commitf957ae2dec09b63b44df9ec06765cbdc52666eec (patch)
treeba94f01577e733b3a380315bfea680e142c3680e /fs/orangefs/file.c
parentd6fe654b7b580720fee632c8d526c6a159111d50 (diff)
Orangefs: choose return codes from among the expected ones.
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/file.c')
-rw-r--r--fs/orangefs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c
index 3e5fc1a2c82f..53e58c3f2121 100644
--- a/fs/orangefs/file.c
+++ b/fs/orangefs/file.c
@@ -973,7 +973,7 @@ static loff_t pvfs2_file_llseek(struct file *file, loff_t offset, int origin)
*/
static int pvfs2_lock(struct file *filp, int cmd, struct file_lock *fl)
{
- int rc = -ENOLCK;
+ int rc = -EINVAL;
if (PVFS2_SB(filp->f_inode->i_sb)->flags & PVFS2_OPT_LOCAL_LOCK) {
if (cmd == F_GETLK) {