diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-13 15:18:15 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-10-15 01:52:29 +0200 |
commit | cc9cd5142a861360861407fd6018385524bf150d (patch) | |
tree | 15141bcbd7f9f5d94f5de347b82b9c390c675c1e /source3/smbd | |
parent | 47f65d5829167f061756621e50b480a8c16e4fbc (diff) | |
download | samba-cc9cd5142a861360861407fd6018385524bf150d.tar.gz samba-cc9cd5142a861360861407fd6018385524bf150d.tar.bz2 samba-cc9cd5142a861360861407fd6018385524bf150d.zip |
smbd: Remove some FAKE_LEVEL_II comments
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/oplock.c | 6 | ||||
-rw-r--r-- | source3/smbd/smb2_create.c | 5 |
2 files changed, 3 insertions, 8 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index fc6b0efdda..ffea57bd1d 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -442,8 +442,8 @@ static void break_level2_to_none_async(files_struct *fsp) /******************************************************************* This handles the case of a write triggering a break to none message on a level2 oplock. - When we get this message we may be in any of three states : - NO_OPLOCK, LEVEL_II, FAKE_LEVEL2. We only send a message to + When we get this message we may be in any of two states : + NO_OPLOCK, LEVEL_II. We only send a message to the client for LEVEL2. *******************************************************************/ @@ -740,7 +740,7 @@ static void do_break_to_none(struct tevent_context *ctx, * As there could have been multiple writes waiting at the * lock_share_entry gate we may not be the first to * enter. Hence the state of the op_types in the share mode - * entries may be partly NO_OPLOCK and partly LEVEL_II or FAKE_LEVEL_II + * entries may be partly NO_OPLOCK and partly LEVEL_II * oplock. It will do no harm to re-send break messages to * those smbd's that are still waiting their turn to remove * their LEVEL_II state, and also no harm to ignore existing diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 140c81b309..f48c8ee379 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -58,11 +58,6 @@ static uint8_t map_samba_oplock_levels_to_smb2(int oplock_type) } else if (EXCLUSIVE_OPLOCK_TYPE(oplock_type)) { return SMB2_OPLOCK_LEVEL_EXCLUSIVE; } else if (oplock_type == LEVEL_II_OPLOCK) { - /* - * Don't use LEVEL_II_OPLOCK_TYPE here as - * this also includes FAKE_LEVEL_II_OPLOCKs - * which are internal only. - */ return SMB2_OPLOCK_LEVEL_II; } else { return SMB2_OPLOCK_LEVEL_NONE; |