Lines Matching refs:result
195 struct inode *result = NULL; in hpfs_lookup() local
229 result = iget_locked(dir->i_sb, ino); in hpfs_lookup()
230 if (!result) { in hpfs_lookup()
234 if (result->i_state & I_NEW) { in hpfs_lookup()
235 hpfs_init_inode(result); in hpfs_lookup()
237 hpfs_read_inode(result); in hpfs_lookup()
239 hpfs_read_inode(result); in hpfs_lookup()
241 result->i_mode |= S_IFREG; in hpfs_lookup()
242 result->i_mode &= ~0111; in hpfs_lookup()
243 result->i_op = &hpfs_file_iops; in hpfs_lookup()
244 result->i_fop = &hpfs_file_ops; in hpfs_lookup()
245 result->i_nlink = 1; in hpfs_lookup()
247 unlock_new_inode(result); in hpfs_lookup()
249 hpfs_result = hpfs_i(result); in hpfs_lookup()
252 hpfs_decide_conv(result, (char *)name, len); in hpfs_lookup()
255 …hpfs_error(result->i_sb, "ACLs or XPERM found. This is probably HPFS386. This driver doesn't suppo… in hpfs_lookup()
264 if (!result->i_ctime.tv_sec) { in hpfs_lookup()
265 if (!(result->i_ctime.tv_sec = local_to_gmt(dir->i_sb, de->creation_date))) in hpfs_lookup()
266 result->i_ctime.tv_sec = 1; in hpfs_lookup()
267 result->i_ctime.tv_nsec = 0; in hpfs_lookup()
268 result->i_mtime.tv_sec = local_to_gmt(dir->i_sb, de->write_date); in hpfs_lookup()
269 result->i_mtime.tv_nsec = 0; in hpfs_lookup()
270 result->i_atime.tv_sec = local_to_gmt(dir->i_sb, de->read_date); in hpfs_lookup()
271 result->i_atime.tv_nsec = 0; in hpfs_lookup()
274 result->i_mode &= ~0222; in hpfs_lookup()
276 if (result->i_size == -1) { in hpfs_lookup()
277 result->i_size = de->file_size; in hpfs_lookup()
278 result->i_data.a_ops = &hpfs_aops; in hpfs_lookup()
279 hpfs_i(result)->mmu_private = result->i_size; in hpfs_lookup()
286 result->i_blocks = 1 + ((result->i_size + 511) >> 9); in hpfs_lookup()
301 d_add(dentry, result); in hpfs_lookup()