Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcf5cb5
)
Branch HEAD
author
tianzy
<tianzy>
Tue, 4 Nov 2008 07:29:14 +0000
(07:29 +0000)
committer
tianzy
<tianzy>
Tue, 4 Nov 2008 07:29:14 +0000
(07:29 +0000)
Replace LBUG with RETURN(-EINVAL) to avoid crashing
b=5135
i=adilger
i=johann
lustre/llite/file.c
patch
|
blob
|
history
diff --git
a/lustre/llite/file.c
b/lustre/llite/file.c
index
76f8269
..
e8978f3
100644
(file)
--- a/
lustre/llite/file.c
+++ b/
lustre/llite/file.c
@@
-2899,7
+2899,7
@@
int ll_file_flock(struct file *file, int cmd, struct file_lock *file_lock)
break;
default:
CERROR("unknown fcntl lock type: %d\n", file_lock->fl_type);
-
LBUG(
);
+
RETURN (-EINVAL
);
}
switch (cmd) {
@@
-2926,7
+2926,7
@@
int ll_file_flock(struct file *file, int cmd, struct file_lock *file_lock)
break;
default:
CERROR("unknown fcntl lock command: %d\n", cmd);
-
LBUG(
);
+
RETURN (-EINVAL
);
}
op_data = ll_prep_md_op_data(NULL, inode, NULL, NULL, 0, 0,