|
@@ -304,7 +304,9 @@ int dlm_posix_get(dlm_lockspace_t *lockspace, u64 number, struct file *file,
|
|
if (rv == -ENOENT)
|
|
if (rv == -ENOENT)
|
|
rv = 0;
|
|
rv = 0;
|
|
else if (rv > 0) {
|
|
else if (rv > 0) {
|
|
|
|
+ locks_init_lock(fl);
|
|
fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK;
|
|
fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK;
|
|
|
|
+ fl->fl_flags = FL_POSIX;
|
|
fl->fl_pid = op->info.pid;
|
|
fl->fl_pid = op->info.pid;
|
|
fl->fl_start = op->info.start;
|
|
fl->fl_start = op->info.start;
|
|
fl->fl_end = op->info.end;
|
|
fl->fl_end = op->info.end;
|