Lines Matching refs:i_sb
15 hpfs_lock(inode->i_sb); in hpfs_dir_release()
18 hpfs_unlock(inode->i_sb); in hpfs_dir_release()
31 struct super_block *s = i->i_sb; in hpfs_dir_lseek()
77 hpfs_lock(inode->i_sb); in hpfs_readdir()
79 if (hpfs_sb(inode->i_sb)->sb_chk) { in hpfs_readdir()
80 if (hpfs_chk_sectors(inode->i_sb, inode->i_ino, 1, "dir_fnode")) { in hpfs_readdir()
84 if (hpfs_chk_sectors(inode->i_sb, hpfs_inode->i_dno, 4, "dir_dnode")) { in hpfs_readdir()
89 if (hpfs_sb(inode->i_sb)->sb_chk >= 2) { in hpfs_readdir()
93 if (!(fno = hpfs_map_fnode(inode->i_sb, inode->i_ino, &bh))) { in hpfs_readdir()
99 hpfs_error(inode->i_sb, "not a directory, fnode %08lx", in hpfs_readdir()
104 …hpfs_error(inode->i_sb, "corrupted inode: i_dno == %08x, fnode -> dnode == %08x", hpfs_inode->i_dn… in hpfs_readdir()
112 lc = hpfs_sb(inode->i_sb)->sb_lowercase; in hpfs_readdir()
127 if (hpfs_sb(inode->i_sb)->sb_chk) in hpfs_readdir()
128 if (hpfs_stop_cycles(inode->i_sb, ctx->pos, &c1, &c2, "hpfs_readdir")) { in hpfs_readdir()
152 ctx->pos = ((loff_t) hpfs_de_as_down_as_possible(inode->i_sb, hpfs_inode->i_dno) << 4) + 1; in hpfs_readdir()
161 if (hpfs_sb(inode->i_sb)->sb_chk) { in hpfs_readdir()
164 hpfs_error(inode->i_sb, "hpfs_readdir: bad ^A^A entry; pos = %08lx", (unsigned long)ctx->pos); in hpfs_readdir()
166 hpfs_error(inode->i_sb, "hpfs_readdir: bad \\377 entry; pos = %08lx", (unsigned long)ctx->pos); in hpfs_readdir()
172 tempname = hpfs_translate_name(inode->i_sb, de->name, de->namelen, lc, de->not_8x3); in hpfs_readdir()
183 hpfs_unlock(inode->i_sb); in hpfs_readdir()
213 hpfs_lock(dir->i_sb); in hpfs_lookup()
216 hpfs_unlock(dir->i_sb); in hpfs_lookup()
244 result = iget_locked(dir->i_sb, ino); in hpfs_lookup()
246 hpfs_error(dir->i_sb, "hpfs_lookup: can't get inode"); in hpfs_lookup()
254 else if (le32_to_cpu(de->ea_size) && hpfs_sb(dir->i_sb)->sb_eas) in hpfs_lookup()
268 if (de->has_acl || de->has_xtd_perm) if (!sb_rdonly(dir->i_sb)) { in hpfs_lookup()
269 …hpfs_error(result->i_sb, "ACLs or XPERM found. This is probably HPFS386. This driver doesn't suppo… in hpfs_lookup()
281 time64_t csec = local_to_gmt(dir->i_sb, le32_to_cpu(de->creation_date)); in hpfs_lookup()
284 result->i_mtime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->write_date)); in hpfs_lookup()
286 result->i_atime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->read_date)); in hpfs_lookup()
316 hpfs_unlock(dir->i_sb); in hpfs_lookup()