]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ext2/file.c
[PATCH] Make most file operations structs in fs/ const
[net-next-2.6.git] / fs / ext2 / file.c
index a484412fc7821bc37dfff95c5141c37ac7cbe3e2..509cceca04dbf5f24fc9a0d14fcaca6d685a6d36 100644 (file)
@@ -39,7 +39,7 @@ static int ext2_release_file (struct inode * inode, struct file * filp)
  * We have mostly NULL's here: the current defaults are ok for
  * the ext2 filesystem.
  */
-struct file_operations ext2_file_operations = {
+const struct file_operations ext2_file_operations = {
        .llseek         = generic_file_llseek,
        .read           = generic_file_read,
        .write          = generic_file_write,
@@ -56,7 +56,7 @@ struct file_operations ext2_file_operations = {
 };
 
 #ifdef CONFIG_EXT2_FS_XIP
-struct file_operations ext2_xip_file_operations = {
+const struct file_operations ext2_xip_file_operations = {
        .llseek         = generic_file_llseek,
        .read           = xip_file_read,
        .write          = xip_file_write,