X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Fcramfs%2Finode.c;h=3d194a2be3f511e869a541d9b782d6cbe5dddaec;hb=7a13e932281e7042a592f4f14db0b348199e7aac;hp=6db03fb089dcaa3fdd2dc43d1784e158e3ec4ea7;hpb=c4366889dda8110247be59ca41fddb82951a8c26;p=powerpc.git diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index 6db03fb089..3d194a2be3 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c @@ -27,8 +27,8 @@ #include -static struct super_operations cramfs_ops; -static struct inode_operations cramfs_dir_inode_operations; +static const struct super_operations cramfs_ops; +static const struct inode_operations cramfs_dir_inode_operations; static const struct file_operations cramfs_directory_operations; static const struct address_space_operations cramfs_aops; @@ -180,7 +180,8 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i struct page *page = NULL; if (blocknr + i < devsize) { - page = read_mapping_page(mapping, blocknr + i, NULL); + page = read_mapping_page_async(mapping, blocknr + i, + NULL); /* synchronous error? */ if (IS_ERR(page)) page = NULL; @@ -518,11 +519,11 @@ static const struct file_operations cramfs_directory_operations = { .readdir = cramfs_readdir, }; -static struct inode_operations cramfs_dir_inode_operations = { +static const struct inode_operations cramfs_dir_inode_operations = { .lookup = cramfs_lookup, }; -static struct super_operations cramfs_ops = { +static const struct super_operations cramfs_ops = { .put_super = cramfs_put_super, .remount_fs = cramfs_remount, .statfs = cramfs_statfs,