From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx133.postini.com [74.125.245.133]) by kanga.kvack.org (Postfix) with SMTP id BC8FD6B004D for ; Sat, 12 May 2012 08:02:45 -0400 (EDT) Received: by pbbrp2 with SMTP id rp2so6125698pbb.14 for ; Sat, 12 May 2012 05:02:45 -0700 (PDT) Date: Sat, 12 May 2012 05:02:29 -0700 (PDT) From: Hugh Dickins Subject: [PATCH 2/10] tmpfs: enable NOSEC optimization In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Christoph Hellwig , Andi Kleen , Al Viro , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Let tmpfs into the NOSEC optimization (avoiding file_remove_suid() overhead on most common writes): set MS_NOSEC on its superblocks. Signed-off-by: Hugh Dickins --- mm/shmem.c | 1 + 1 file changed, 1 insertion(+) --- 3045N.orig/mm/shmem.c 2012-05-05 10:45:17.888060878 -0700 +++ 3045N/mm/shmem.c 2012-05-05 10:46:05.732062006 -0700 @@ -2361,6 +2361,7 @@ int shmem_fill_super(struct super_block } } sb->s_export_op = &shmem_export_ops; + sb->s_flags |= MS_NOSEC; #else sb->s_flags |= MS_NOUSER; #endif -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org