1 --- a/fs/yaffs2/yaffs_fs.c
2 +++ b/fs/yaffs2/yaffs_fs.c
7 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
8 +#define YPROC_ROOT &proc_root
10 +#define YPROC_ROOT NULL
13 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17))
14 #define WRITE_SIZE_STR "writesize"
15 #define WRITE_SIZE(mtd) (mtd)->writesize
20 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
21 static void yaffs_put_inode(struct inode *inode);
23 static void yaffs_delete_inode(struct inode *);
24 static void yaffs_clear_inode(struct inode *);
27 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25))
28 .read_inode = yaffs_read_inode,
30 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
31 .put_inode = yaffs_put_inode,
33 .put_super = yaffs_put_super,
34 .delete_inode = yaffs_delete_inode,
35 .clear_inode = yaffs_clear_inode,
40 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
41 /* For now put inode is just for debugging
42 * Put inode is called when the inode **structure** is put.
45 atomic_read(&inode->i_count)));
50 /* clear is called to tell the fs to release any per-inode data it holds */
51 static void yaffs_clear_inode(struct inode *inode)
53 /* Install the proc_fs entry */
54 my_proc_entry = create_proc_entry("yaffs",
60 my_proc_entry->write_proc = yaffs_proc_write;
62 T(YAFFS_TRACE_ALWAYS, ("yaffs " __DATE__ " " __TIME__
65 - remove_proc_entry("yaffs", &proc_root);
66 + remove_proc_entry("yaffs", YPROC_ROOT);
68 fsinst = fs_to_install;