bool (*set_oplock)(struct kernel_oplocks *ctx,
files_struct *fsp, int oplock_type);
void (*release_oplock)(struct kernel_oplocks *ctx,
- files_struct *fsp);
+ files_struct *fsp, int oplock_type);
};
#include "smb_macros.h"
if ((fsp->oplock_type != NO_OPLOCK) &&
(fsp->oplock_type != FAKE_LEVEL_II_OPLOCK) &&
koplocks) {
- koplocks->ops->release_oplock(koplocks, fsp);
+ koplocks->ops->release_oplock(koplocks, fsp, NO_OPLOCK);
}
if (fsp->oplock_type == LEVEL_II_OPLOCK) {
static void downgrade_file_oplock(files_struct *fsp)
{
if (koplocks) {
- koplocks->ops->release_oplock(koplocks, fsp);
+ koplocks->ops->release_oplock(koplocks, fsp, LEVEL_II_OPLOCK);
}
fsp->oplock_type = LEVEL_II_OPLOCK;
exclusive_oplocks_open--;
****************************************************************************/
static void irix_release_kernel_oplock(struct kernel_oplocks *_ctx,
- files_struct *fsp)
+ files_struct *fsp, int oplock_type)
{
if (DEBUGLVL(10)) {
/*
****************************************************************************/
static void linux_release_kernel_oplock(struct kernel_oplocks *ctx,
- files_struct *fsp)
+ files_struct *fsp, int oplock_type)
{
if (DEBUGLVL(10)) {
/*