commit | f957ae2dec09b63b44df9ec06765cbdc52666eec | [log] [tgz] |
---|---|---|
author | Mike Marshall <hubcap@omnibond.com> | Thu Sep 24 12:53:05 2015 -0400 |
committer | Mike Marshall <hubcap@omnibond.com> | Sat Oct 03 11:44:34 2015 -0400 |
tree | ba94f01577e733b3a380315bfea680e142c3680e | |
parent | d6fe654b7b580720fee632c8d526c6a159111d50 [diff] [blame] |
Orangefs: choose return codes from among the expected ones. Signed-off-by: Mike Marshall <hubcap@omnibond.com>
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index 3e5fc1a..53e58c3 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c
@@ -973,7 +973,7 @@ */ 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) {