public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Patch series to mark struct file_operations and struct inode_operations const
@ 2007-01-14  0:51 Arjan van de Ven
  2007-01-14  0:51 ` [patch 00/12] Fix ppc64's writing to struct file_operations Arjan van de Ven
                   ` (12 more replies)
  0 siblings, 13 replies; 17+ messages in thread
From: Arjan van de Ven @ 2007-01-14  0:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm

Hi,

today a sizable portion of the "struct file_operations" variables in the
kernel are const, but by far not all. Nor are any of the struct
inode_operations const. Marking these read-only datastructures const has
the advantage of reducing false sharing of these, often hot,
datastructures. In addition there have been cases where drivers or
filesystems accidentally and incorrectly wrote to such a struct
forgetting that it's a shared datastructure. By marking these const, the
compiler will warn/error on such instances.

The series is split up for size, there isn't really any logical order
for such a simple search-and-replace operation.

Greetings,
   Arjan van de Ven


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-01-15  0:15 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-14  0:51 Patch series to mark struct file_operations and struct inode_operations const Arjan van de Ven
2007-01-14  0:51 ` [patch 00/12] Fix ppc64's writing to struct file_operations Arjan van de Ven
2007-01-14 14:54   ` Alan
2007-01-14 23:55     ` Stephen Rothwell
2007-01-15  0:15       ` Arjan van de Ven
2007-01-14  0:52 ` [patch 01/12] mark struct file_operations const 1 Arjan van de Ven
2007-01-14  0:53 ` [patch 02/12] mark struct file_operations const 2 Arjan van de Ven
2007-01-14  0:53 ` [patch 03/12] mark struct file_operations const 3 Arjan van de Ven
2007-01-14  0:54 ` [patch 04/12] mark struct file_operations const 4 Arjan van de Ven
2007-01-14  0:54 ` [patch 05/12] mark struct file_operations const 5 Arjan van de Ven
2007-01-14  0:55 ` [patch 06/12] mark struct file_operations const 6 Arjan van de Ven
2007-01-14  0:56 ` [patch 07/12] mark struct file_operations const 7 Arjan van de Ven
2007-01-14  0:56 ` [patch 08/12] mark struct file_operations const 8 Arjan van de Ven
2007-01-14  0:57 ` [patch 09/12] mark struct file_operations const 9 Arjan van de Ven
2007-01-14  0:57 ` [patch 10/12] mark struct inode_operations const 1 Arjan van de Ven
2007-01-14  0:58 ` [patch 11/12] mark struct inode_operations const 2 Arjan van de Ven
2007-01-14  0:58 ` [patch 12/12] mark struct inode_operations const 3 Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox