aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hpfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hpfs/inode.c')
-rw-r--r--fs/hpfs/inode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/hpfs/inode.c b/fs/hpfs/inode.c
index fe703ae46bc7..1042a9bc97f3 100644
--- a/fs/hpfs/inode.c
+++ b/fs/hpfs/inode.c
@@ -7,6 +7,7 @@
7 */ 7 */
8 8
9#include <linux/smp_lock.h> 9#include <linux/smp_lock.h>
10#include <linux/slab.h>
10#include "hpfs_fn.h" 11#include "hpfs_fn.h"
11 12
12void hpfs_init_inode(struct inode *i) 13void hpfs_init_inode(struct inode *i)
@@ -46,7 +47,7 @@ void hpfs_read_inode(struct inode *i)
46 struct fnode *fnode; 47 struct fnode *fnode;
47 struct super_block *sb = i->i_sb; 48 struct super_block *sb = i->i_sb;
48 struct hpfs_inode_info *hpfs_inode = hpfs_i(i); 49 struct hpfs_inode_info *hpfs_inode = hpfs_i(i);
49 unsigned char *ea; 50 void *ea;
50 int ea_size; 51 int ea_size;
51 52
52 if (!(fnode = hpfs_map_fnode(sb, i->i_ino, &bh))) { 53 if (!(fnode = hpfs_map_fnode(sb, i->i_ino, &bh))) {
@@ -112,7 +113,7 @@ void hpfs_read_inode(struct inode *i)
112 } 113 }
113 } 114 }
114 if (fnode->dirflag) { 115 if (fnode->dirflag) {
115 unsigned n_dnodes, n_subdirs; 116 int n_dnodes, n_subdirs;
116 i->i_mode |= S_IFDIR; 117 i->i_mode |= S_IFDIR;
117 i->i_op = &hpfs_dir_iops; 118 i->i_op = &hpfs_dir_iops;
118 i->i_fop = &hpfs_dir_ops; 119 i->i_fop = &hpfs_dir_ops;