diff options
Diffstat (limited to 'fs/befs/linuxvfs.c')
-rw-r--r-- | fs/befs/linuxvfs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 07f7144f0e2e..481e59b9d91c 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -61,7 +61,7 @@ static const struct super_operations befs_sops = { | |||
61 | }; | 61 | }; |
62 | 62 | ||
63 | /* slab cache for befs_inode_info objects */ | 63 | /* slab cache for befs_inode_info objects */ |
64 | static kmem_cache_t *befs_inode_cachep; | 64 | static struct kmem_cache *befs_inode_cachep; |
65 | 65 | ||
66 | static const struct file_operations befs_dir_operations = { | 66 | static const struct file_operations befs_dir_operations = { |
67 | .read = generic_read_dir, | 67 | .read = generic_read_dir, |
@@ -212,7 +212,7 @@ befs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) | |||
212 | static int | 212 | static int |
213 | befs_readdir(struct file *filp, void *dirent, filldir_t filldir) | 213 | befs_readdir(struct file *filp, void *dirent, filldir_t filldir) |
214 | { | 214 | { |
215 | struct inode *inode = filp->f_dentry->d_inode; | 215 | struct inode *inode = filp->f_path.dentry->d_inode; |
216 | struct super_block *sb = inode->i_sb; | 216 | struct super_block *sb = inode->i_sb; |
217 | befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; | 217 | befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; |
218 | befs_off_t value; | 218 | befs_off_t value; |
@@ -222,7 +222,7 @@ befs_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
222 | char keybuf[BEFS_NAME_LEN + 1]; | 222 | char keybuf[BEFS_NAME_LEN + 1]; |
223 | char *nlsname; | 223 | char *nlsname; |
224 | int nlsnamelen; | 224 | int nlsnamelen; |
225 | const char *dirname = filp->f_dentry->d_name.name; | 225 | const char *dirname = filp->f_path.dentry->d_name.name; |
226 | 226 | ||
227 | befs_debug(sb, "---> befs_readdir() " | 227 | befs_debug(sb, "---> befs_readdir() " |
228 | "name %s, inode %ld, filp->f_pos %Ld", | 228 | "name %s, inode %ld, filp->f_pos %Ld", |
@@ -277,7 +277,7 @@ befs_alloc_inode(struct super_block *sb) | |||
277 | { | 277 | { |
278 | struct befs_inode_info *bi; | 278 | struct befs_inode_info *bi; |
279 | bi = (struct befs_inode_info *)kmem_cache_alloc(befs_inode_cachep, | 279 | bi = (struct befs_inode_info *)kmem_cache_alloc(befs_inode_cachep, |
280 | SLAB_KERNEL); | 280 | GFP_KERNEL); |
281 | if (!bi) | 281 | if (!bi) |
282 | return NULL; | 282 | return NULL; |
283 | return &bi->vfs_inode; | 283 | return &bi->vfs_inode; |
@@ -289,7 +289,7 @@ befs_destroy_inode(struct inode *inode) | |||
289 | kmem_cache_free(befs_inode_cachep, BEFS_I(inode)); | 289 | kmem_cache_free(befs_inode_cachep, BEFS_I(inode)); |
290 | } | 290 | } |
291 | 291 | ||
292 | static void init_once(void * foo, kmem_cache_t * cachep, unsigned long flags) | 292 | static void init_once(void * foo, struct kmem_cache * cachep, unsigned long flags) |
293 | { | 293 | { |
294 | struct befs_inode_info *bi = (struct befs_inode_info *) foo; | 294 | struct befs_inode_info *bi = (struct befs_inode_info *) foo; |
295 | 295 | ||