more gcc3.4 inline fixes [9/10] [2/4]
PATCH 1/1 more gcc3.4 inline fixes [9/10] [2/4]
splitted-up the fs/* gcc3.4-inline-patches.
[2/4] intermezzo inlining+lvalue fixes
include/linux/fsfilter.h renamed from include/linux/fsfilter.h~ +16 -16
@@ -74,22 +74,22 @@struct filter_fs *filter_get_filter_fs (const char *cache_type);void filter_setup_journal_ops (struct filter_fs *ops,char *cache_type); -inline struct super_operations *filter_c2usops (struct filter_fs *cache); -inline struct inode_operations *filter_c2ufiops (struct filter_fs *cache); -inline struct inode_operations *filter_c2udiops (struct filter_fs *cache); -inline struct inode_operations *filter_c2usiops (struct filter_fs *cache); -inline struct file_operations *filter_c2uffops (struct filter_fs *cache); -inline struct file_operations *filter_c2udfops (struct filter_fs *cache); -inline struct file_operations *filter_c2usfops (struct filter_fs *cache); -inline struct super_operations *filter_c2csops (struct filter_fs *cache); -inline struct inode_operations *filter_c2cfiops (struct filter_fs *cache); -inline struct inode_operations *filter_c2cdiops (struct filter_fs *cache); -inline struct inode_operations *filter_c2csiops (struct filter_fs *cache); -inline struct file_operations *filter_c2cffops (struct filter_fs *cache); -inline struct file_operations *filter_c2cdfops (struct filter_fs *cache); -inline struct file_operations *filter_c2csfops (struct filter_fs *cache); -inline struct dentry_operations *filter_c2cdops (struct filter_fs *cache); -inline struct dentry_operations *filter_c2udops (struct filter_fs *cache); +struct super_operations *filter_c2usops (struct filter_fs *cache); +struct inode_operations *filter_c2ufiops (struct filter_fs *cache); +struct inode_operations *filter_c2udiops (struct filter_fs *cache); +struct inode_operations *filter_c2usiops (struct filter_fs *cache); +struct file_operations *filter_c2uffops (struct filter_fs *cache); +struct file_operations *filter_c2udfops (struct filter_fs *cache); +struct file_operations *filter_c2usfops (struct filter_fs *cache); +struct super_operations *filter_c2csops (struct filter_fs *cache); +struct inode_operations *filter_c2cfiops (struct filter_fs *cache); +struct inode_operations *filter_c2cdiops (struct filter_fs *cache); +struct inode_operations *filter_c2csiops (struct filter_fs *cache); +struct file_operations *filter_c2cffops (struct filter_fs *cache); +struct file_operations *filter_c2cdfops (struct filter_fs *cache); +struct file_operations *filter_c2csfops (struct filter_fs *cache); +struct dentry_operations *filter_c2cdops (struct filter_fs *cache); +struct dentry_operations *filter_c2udops (struct filter_fs *cache);void filter_setup_super_ops (struct filter_fs *cache,struct super_operations *cache_ops,struct super_operations *filter_sops);void filter_setup_dir_ops (struct filter_fs *cache,struct inode *cache_inode,struct inode_operations *filter_iops,struct file_operations *ffops);
include/linux/intermezzo_fs.h renamed from include/linux/intermezzo_fs.h~ +57 -67
188 lines not on this page · raw message
fs/intermezzo/cache.c renamed from fs/intermezzo/cache.c~ +8 -0
@@ -78,6 +78,14 @@ } } +int izo_ioctl_packlen (struct izo_ioctl_data *data) +{ +int len =sizeof (struct izo_ioctl_data ); + len +=size_round (data->ioc_inllen1); + len +=size_round (data->ioc_inllen2); +return len; +} +/* map a device to a cache */ struct presto_cache *presto_cache_find (kdev_t dev) {
fs/intermezzo/sysctl.c renamed from fs/intermezzo/sysctl.c~ +4 -1
@@ -290,6 +290,8 @@* happens once per reboot. */ for (i =0 ; i < total_dev; i++) { +void *p; +/* entry for this /proc/sys/intermezzo/intermezzo"i" */ ctl_table *psdev = &presto_table[i +PRESTO_PRIMARY_CTLCNT ];/* entries for the individual "files" in this "directory" */
@@ -302,7 +303,8 @@/* the psdev has to point to psdev_entries, and fix the number */ psdev->ctl_name = psdev->ctl_name + i +1 ;/* sorry */ -PRESTO_ALLOC ((void *)psdev->procname,PROCNAME_SIZE ); +PRESTO_ALLOC (p,PROCNAME_SIZE ); + psdev->procname = p;if (!psdev->procname) {PRESTO_FREE (dev_ctl_table,sizeof (ctl_table) * total_entries);