locks: rename lock-manager ops
Both the filesystem and the lock manager can associate operations with a lock. Confusingly, one of them (fl_release_private) actually has the same name in both operation structures. It would save some confusion to give the lock-manager ops different names. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
@@ -1495,7 +1495,7 @@ static int fuse_setlk(struct file *file, struct file_lock *fl, int flock)
|
||||
pid_t pid = fl->fl_type != F_UNLCK ? current->tgid : 0;
|
||||
int err;
|
||||
|
||||
if (fl->fl_lmops && fl->fl_lmops->fl_grant) {
|
||||
if (fl->fl_lmops && fl->fl_lmops->lm_grant) {
|
||||
/* NLM needs asynchronous locks, which we don't support yet */
|
||||
return -ENOLCK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user