From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: [PATCH 1/6] fanotify: fix FMODE_NONOTIFY bit number Date: Fri, 15 Jan 2010 09:39:55 +0800 Message-ID: <20100115014422.267373147@intel.com> References: <20100115013954.311049665@intel.com> Cc: Al Viro , Eric Paris , Wu Fengguang To: Andrew Morton Return-path: Received: from mga01.intel.com ([192.55.52.88]:6366 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968Ab0AOBtc (ORCPT ); Thu, 14 Jan 2010 20:49:32 -0500 CC: Christoph Hellwig Cc: LKML CC: Nick Piggin CC: Andi Kleen CC: David Howells CC: Jonathan Corbet cc: Content-Disposition: inline; filename=fanotify-bit-fix Sender: linux-fsdevel-owner@vger.kernel.org List-ID: FMODE_NONOTIFY=0x800000 collides with __O_SYNC in sparc, so change it to 0x1000000. CC: Eric Paris Signed-off-by: Wu Fengguang --- include/asm-generic/fcntl.h | 2 +- include/linux/fs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- linux.orig/include/asm-generic/fcntl.h 2010-01-05 10:42:36.000000000 +0800 +++ linux/include/asm-generic/fcntl.h 2010-01-05 10:42:57.000000000 +0800 @@ -5,7 +5,7 @@ /* * FMODE_EXEC is 0x20 - * FMODE_NONOTIFY is 0x800000 + * FMODE_NONOTIFY is 0x1000000 * These cannot be used by userspace O_* until internal and external open * flags are split. * -Eric Paris --- linux.orig/include/linux/fs.h 2010-01-05 10:40:33.000000000 +0800 +++ linux/include/linux/fs.h 2010-01-05 10:42:07.000000000 +0800 @@ -88,7 +88,7 @@ struct inodes_stat_t { #define FMODE_NOCMTIME ((__force fmode_t)2048) /* File was opened by fanotify and shouldn't generate fanotify events */ -#define FMODE_NONOTIFY ((__force fmode_t)8388608) +#define FMODE_NONOTIFY ((__force fmode_t)0x1000000) /* * The below are the various read and write types that we support. Some of