mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 21:21:47 +00:00
92e1d5be91
Many struct inode_operations in the kernel can be "const". Marking them const moves these to the .rodata section, which avoids false sharing with potential dirty data. In addition it'll catch accidental writes at compile time to these shared resources. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
21 lines
666 B
C
21 lines
666 B
C
/*
|
|
* Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
|
|
* Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
|
|
*
|
|
* This copyrighted material is made available to anyone wishing to use,
|
|
* modify, copy, or redistribute it subject to the terms and conditions
|
|
* of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef __OPS_INODE_DOT_H__
|
|
#define __OPS_INODE_DOT_H__
|
|
|
|
#include <linux/fs.h>
|
|
|
|
extern const struct inode_operations gfs2_file_iops;
|
|
extern const struct inode_operations gfs2_dir_iops;
|
|
extern const struct inode_operations gfs2_symlink_iops;
|
|
extern const struct inode_operations gfs2_dev_iops;
|
|
|
|
#endif /* __OPS_INODE_DOT_H__ */
|