diff options
author | Volker Lendecke <vl@samba.org> | 2012-03-21 12:18:09 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-03-21 14:26:06 +0100 |
commit | f3fe53668f5f42123ab4d91de23ac4f16bf12733 (patch) | |
tree | 4a8d95b4c44e5424f20558669895ea1745e69f26 /source3/smbd/files.c | |
parent | 7dcc2bf7af10c6bf5f714b43ca81083fa1bea0b9 (diff) | |
download | samba-f3fe53668f5f42123ab4d91de23ac4f16bf12733.tar.gz samba-f3fe53668f5f42123ab4d91de23ac4f16bf12733.tar.bz2 samba-f3fe53668f5f42123ab4d91de23ac4f16bf12733.zip |
s3: Move the notify_ctx to the smbd_server_connection
We only need one notify_ctx per smbd. The notify_array can become quite large.
It's based on absolute paths, so there's no point in having a copy of the
complete array in memory multiple times.
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Mar 21 14:26:07 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r-- | source3/smbd/files.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 10a0b8169d..6499a810ff 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -447,11 +447,13 @@ void file_free(struct smb_request *req, files_struct *fsp) } if (fsp->notify) { + struct notify_context *notify_ctx = + fsp->conn->sconn->notify_ctx; if (fsp->is_directory) { - notify_remove_onelevel(fsp->conn->notify_ctx, + notify_remove_onelevel(notify_ctx, &fsp->file_id, fsp); } - notify_remove(fsp->conn->notify_ctx, fsp); + notify_remove(notify_ctx, fsp); TALLOC_FREE(fsp->notify); } |