tmpfs: enable NOSEC optimization
commit2f6e38f3cd17a7858112f538c1700c747170db1f
authorHugh Dickins <hughd@google.com>
Tue, 29 May 2012 22:06:38 +0000 (29 15:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:22 +0000 (29 16:22 -0700)
tree894181551acd46caea34ff2b3fba13ffd049fcbd
parentbde05d1ccd512696b09db9dd2e5f33ad19152605
tmpfs: enable NOSEC optimization

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 <hughd@google.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/shmem.c