From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757409AbbIUVhZ (ORCPT ); Mon, 21 Sep 2015 17:37:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52146 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757327AbbIUVhX (ORCPT ); Mon, 21 Sep 2015 17:37:23 -0400 Date: Mon, 21 Sep 2015 14:37:22 -0700 From: Andrew Morton To: Patrick Puzik Cc: Jan Kara , Josef Bacik , Dave Chinner , Nikolay Borisov , linux-kernel@vger.kernel.org, Patrick Puzik Subject: Re: [PATCH] Add FS_CLOSE_READ and FS_CLOSE_NOREAD flag to fsnotify Message-Id: <20150921143722.2f404ed9e66233a3d38a7d46@linux-foundation.org> In-Reply-To: <1442783255-7457-1-git-send-email-p.puzi91@gmail.com> References: <1442783255-7457-1-git-send-email-p.puzi91@gmail.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 20 Sep 2015 23:07:35 +0200 Patrick Puzik wrote: > Attached is a patch which is a preparation for the later support of an event notification, > when an unreadable or readable file was closed. People will want to see the whole patchset. > --- a/include/linux/fsnotify_backend.h > +++ b/include/linux/fsnotify_backend.h > @@ -28,6 +28,8 @@ > #define FS_ATTRIB 0x00000004 /* Metadata changed */ > #define FS_CLOSE_WRITE 0x00000008 /* Writtable file was closed */ > #define FS_CLOSE_NOWRITE 0x00000010 /* Unwrittable file closed */ > +#define FS_CLOSE_READ 0x00000011 /* Unreadable file closed */ > +#define FS_CLOSE_NOREAD 0x00000012 /* Readable file was closed */ The comments appear to be reversed.