From patchwork Tue May 12 18:16:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 11543713 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C373A139F for ; Tue, 12 May 2020 18:16:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B3CFE206B8 for ; Tue, 12 May 2020 18:16:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726031AbgELSQT (ORCPT ); Tue, 12 May 2020 14:16:19 -0400 Received: from mailrelay115.isp.belgacom.be ([195.238.20.142]:26460 "EHLO mailrelay115.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgELSQS (ORCPT ); Tue, 12 May 2020 14:16:18 -0400 IronPort-SDR: BGohTkaPLpFZSU2hnV6Eu32j2LQv9CJn0mu5Q3KYxQSEJwry5Zpd2oxg7oM/UM/olh0gHHx1FK uhnHibd2THPgCtIVPvAbou0Knn/GuXNwV8NV+ekmlWY7PgNRhqGkGA7/S4L3tPuYCtMK3mKZ5e VBY4m1Xe1DIq28cQOu57CgFXFS1kORl/AS0odyNmfJEcSnwuunHI13RzhWL2Sp1t5oAKYZ/oxG ZUlu6N5kKaqs/Ae9zPxj97R7npPzg8TVcOFvf01bWm+mAnHyAxFJUzvMLU+3qz+yddbSk69Xgn i54= X-Belgacom-Dynamic: yes IronPort-PHdr: 9a23:KwXe5RXgc2rBBTinUjEendD5VG3V8LGtZVwlr6E/grcLSJyIuqrYbRCPt8tkgFKBZ4jH8fUM07OQ7/m9Hz1aqs/Y4DgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck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cfA4wNJfah8JgBtz/QAPKfZ/dRl+sTP29AiA3Q853ydJYMBU1IMmrkh2Wh3niOLQSjbHeXJE= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CuBQAE57pe/xCltltmglCCKoFkEo1RhXyMGI9dgXsLAQEBAQEBAQEBNAECBAEBhDoKggQnNQgOAgMBAQEDAgUBAQYBAQEBAQEEBAFsBAEBBwoCAYROIQEDAQEFCgFDgjsig0ILASMjT3CDOIJYKbE9M4VRg1eBQIE4h12FAYFBP4RfikIEsmuCVIJxlSsMHZ06kB2fJgI1gVZNIBiDJU8YDZ8KQmcCBggBAQMJVwEiAY4IAQE X-IPAS-Result: A2CuBQAE57pe/xCltltmglCCKoFkEo1RhXyMGI9dgXsLAQEBAQEBAQEBNAECBAEBhDoKggQnNQgOAgMBAQEDAgUBAQYBAQEBAQEEBAFsBAEBBwoCAYROIQEDAQEFCgFDgjsig0ILASMjT3CDOIJYKbE9M4VRg1eBQIE4h12FAYFBP4RfikIEsmuCVIJxlSsMHZ06kB2fJgI1gVZNIBiDJU8YDZ8KQmcCBggBAQMJVwEiAY4IAQE Received: from 16.165-182-91.adsl-dyn.isp.belgacom.be (HELO biggussolus.home) ([91.182.165.16]) by relay.skynet.be with ESMTP; 12 May 2020 20:16:15 +0200 From: Fabian Frederick To: jack@suse.cz, amir73il@gmail.com Cc: linux-fsdevel@vger.kernel.org, Fabian Frederick Subject: [PATCH V2 0/6 linux-next] fs/notify: cleanup Date: Tue, 12 May 2020 20:16:08 +0200 Message-Id: <20200512181608.405682-1-fabf@skynet.be> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org This small patchset does some cleanup in fs/notify branch especially in fanotify. V2: Apply Amir Goldstein suggestions: -Remove patch 2, 7 and 9 -Patch "fanotify: don't write with zero size" -> "fanotify: don't write with size under sizeof(response)" Fabian Frederick (6): fanotify: prefix should_merge() notify: explicit shutdown initialization notify: add mutex destroy fanotify: remove reference to fill_event_metadata() fsnotify/fdinfo: remove proc_fs.h inclusion fanotify: don't write with size under sizeof(response) fs/notify/fanotify/fanotify.c | 4 ++-- fs/notify/fanotify/fanotify_user.c | 8 +++++--- fs/notify/fdinfo.c | 1 - fs/notify/group.c | 2 ++ 4 files changed, 9 insertions(+), 6 deletions(-)