diff options
Diffstat (limited to 'fs/jffs/inode-v23.c')
-rw-r--r-- | fs/jffs/inode-v23.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c index 3f7899ea4cba..43baa1afa021 100644 --- a/fs/jffs/inode-v23.c +++ b/fs/jffs/inode-v23.c | |||
@@ -61,8 +61,8 @@ static const struct file_operations jffs_dir_operations; | |||
61 | static struct inode_operations jffs_dir_inode_operations; | 61 | static struct inode_operations jffs_dir_inode_operations; |
62 | static const struct address_space_operations jffs_address_operations; | 62 | static const struct address_space_operations jffs_address_operations; |
63 | 63 | ||
64 | kmem_cache_t *node_cache = NULL; | 64 | struct kmem_cache *node_cache = NULL; |
65 | kmem_cache_t *fm_cache = NULL; | 65 | struct kmem_cache *fm_cache = NULL; |
66 | 66 | ||
67 | /* Called by the VFS at mount time to initialize the whole file system. */ | 67 | /* Called by the VFS at mount time to initialize the whole file system. */ |
68 | static int jffs_fill_super(struct super_block *sb, void *data, int silent) | 68 | static int jffs_fill_super(struct super_block *sb, void *data, int silent) |
@@ -566,7 +566,7 @@ static int | |||
566 | jffs_readdir(struct file *filp, void *dirent, filldir_t filldir) | 566 | jffs_readdir(struct file *filp, void *dirent, filldir_t filldir) |
567 | { | 567 | { |
568 | struct jffs_file *f; | 568 | struct jffs_file *f; |
569 | struct dentry *dentry = filp->f_dentry; | 569 | struct dentry *dentry = filp->f_path.dentry; |
570 | struct inode *inode = dentry->d_inode; | 570 | struct inode *inode = dentry->d_inode; |
571 | struct jffs_control *c = (struct jffs_control *)inode->i_sb->s_fs_info; | 571 | struct jffs_control *c = (struct jffs_control *)inode->i_sb->s_fs_info; |
572 | int j; | 572 | int j; |
@@ -818,7 +818,7 @@ jffs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | |||
818 | 818 | ||
819 | D1({ | 819 | D1({ |
820 | int len = dentry->d_name.len; | 820 | int len = dentry->d_name.len; |
821 | char *_name = (char *) kmalloc(len + 1, GFP_KERNEL); | 821 | char *_name = kmalloc(len + 1, GFP_KERNEL); |
822 | memcpy(_name, dentry->d_name.name, len); | 822 | memcpy(_name, dentry->d_name.name, len); |
823 | _name[len] = '\0'; | 823 | _name[len] = '\0'; |
824 | printk("***jffs_mkdir(): dir = 0x%p, name = \"%s\", " | 824 | printk("***jffs_mkdir(): dir = 0x%p, name = \"%s\", " |
@@ -964,7 +964,7 @@ jffs_remove(struct inode *dir, struct dentry *dentry, int type) | |||
964 | D1({ | 964 | D1({ |
965 | int len = dentry->d_name.len; | 965 | int len = dentry->d_name.len; |
966 | const char *name = dentry->d_name.name; | 966 | const char *name = dentry->d_name.name; |
967 | char *_name = (char *) kmalloc(len + 1, GFP_KERNEL); | 967 | char *_name = kmalloc(len + 1, GFP_KERNEL); |
968 | memcpy(_name, name, len); | 968 | memcpy(_name, name, len); |
969 | _name[len] = '\0'; | 969 | _name[len] = '\0'; |
970 | printk("***jffs_remove(): file = \"%s\", ino = %ld\n", _name, dentry->d_inode->i_ino); | 970 | printk("***jffs_remove(): file = \"%s\", ino = %ld\n", _name, dentry->d_inode->i_ino); |
@@ -1372,7 +1372,7 @@ jffs_file_write(struct file *filp, const char *buf, size_t count, | |||
1372 | struct jffs_control *c; | 1372 | struct jffs_control *c; |
1373 | struct jffs_file *f; | 1373 | struct jffs_file *f; |
1374 | struct jffs_node *node; | 1374 | struct jffs_node *node; |
1375 | struct dentry *dentry = filp->f_dentry; | 1375 | struct dentry *dentry = filp->f_path.dentry; |
1376 | struct inode *inode = dentry->d_inode; | 1376 | struct inode *inode = dentry->d_inode; |
1377 | int recoverable = 0; | 1377 | int recoverable = 0; |
1378 | size_t written = 0; | 1378 | size_t written = 0; |
@@ -1380,7 +1380,7 @@ jffs_file_write(struct file *filp, const char *buf, size_t count, | |||
1380 | loff_t pos = *ppos; | 1380 | loff_t pos = *ppos; |
1381 | int err; | 1381 | int err; |
1382 | 1382 | ||
1383 | inode = filp->f_dentry->d_inode; | 1383 | inode = filp->f_path.dentry->d_inode; |
1384 | 1384 | ||
1385 | D2(printk("***jffs_file_write(): inode: 0x%p (ino: %lu), " | 1385 | D2(printk("***jffs_file_write(): inode: 0x%p (ino: %lu), " |
1386 | "filp: 0x%p, buf: 0x%p, count: %d\n", | 1386 | "filp: 0x%p, buf: 0x%p, count: %d\n", |