mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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. Change-Id: I72fe4524333306472995ea3d8dc7927ac98b31b5 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>
This commit is contained in:
parent
c18d7146ba
commit
24fd40b8f6
1 changed files with 1 additions and 0 deletions
|
@ -2481,6 +2481,7 @@ int shmem_fill_super(struct super_block *sb, void *data, int silent)
|
|||
}
|
||||
}
|
||||
sb->s_export_op = &shmem_export_ops;
|
||||
sb->s_flags |= MS_NOSEC;
|
||||
#else
|
||||
sb->s_flags |= MS_NOUSER;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue