9 #include <linux/slab.h>
18 i->
i_uid = hpfs_sb(sb)->sb_uid;
19 i->
i_gid = hpfs_sb(sb)->sb_gid;
20 i->
i_mode = hpfs_sb(sb)->sb_mode;
24 hpfs_inode->
i_dno = 0;
45 struct buffer_head *bh;
61 if (hpfs_sb(i->
i_sb)->sb_eas) {
109 new_decode_dev(rdev));
114 if (fnode_is_dir(fnode)) {
115 int n_dnodes, n_subdirs;
121 if (hpfs_sb(sb)->sb_chk >= 2) {
122 struct buffer_head *bh0;
125 n_dnodes = 0; n_subdirs = 0;
128 i->
i_size = 2048 * n_dnodes;
139 hpfs_i(i)->mmu_private = i->
i_size;
151 if (hpfs_sb(i->
i_sb)->sb_eas >= 2) {
184 if (i->
i_ino == hpfs_sb(i->
i_sb)->sb_root)
return;
186 if (*hpfs_inode->
i_rddir_off)
printk(
"HPFS: write_inode: some position still there\n");
209 struct buffer_head *bh;
213 if (i->
i_ino == hpfs_sb(i->
i_sb)->sb_root)
return;
228 hpfs_write_inode_ea(i, fnode);
250 "directory %08lx doesn't have '.' entry",
251 (
unsigned long)i->
i_ino);
262 hpfs_lock(inode->
i_sb);
263 if (inode->
i_ino == hpfs_sb(inode->
i_sb)->sb_root)
279 attr->
ia_size != i_size_read(inode)) {
290 hpfs_unlock(inode->
i_sb);
307 hpfs_lock(inode->
i_sb);
309 hpfs_unlock(inode->
i_sb);