Lines Matching refs:result

32 	struct inode *result;  in hpfs_mkdir()  local
54 result = new_inode(dir->i_sb); in hpfs_mkdir()
55 if (!result) in hpfs_mkdir()
57 hpfs_init_inode(result); in hpfs_mkdir()
58 result->i_ino = fno; in hpfs_mkdir()
59 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mkdir()
60 hpfs_i(result)->i_dno = dno; in hpfs_mkdir()
61 inode_set_mtime_to_ts(result, in hpfs_mkdir()
62 …inode_set_atime_to_ts(result, inode_set_ctime(result, local_to_gmt(dir->i_sb, le32_to_cpu(dee.crea… in hpfs_mkdir()
63 hpfs_i(result)->i_ea_size = 0; in hpfs_mkdir()
64 result->i_mode |= S_IFDIR; in hpfs_mkdir()
65 result->i_op = &hpfs_dir_iops; in hpfs_mkdir()
66 result->i_fop = &hpfs_dir_ops; in hpfs_mkdir()
67 result->i_blocks = 4; in hpfs_mkdir()
68 result->i_size = 2048; in hpfs_mkdir()
69 set_nlink(result, 2); in hpfs_mkdir()
71 result->i_mode &= ~0222; in hpfs_mkdir()
102 insert_inode_hash(result); in hpfs_mkdir()
104 if (!uid_eq(result->i_uid, current_fsuid()) || in hpfs_mkdir()
105 !gid_eq(result->i_gid, current_fsgid()) || in hpfs_mkdir()
106 result->i_mode != (mode | S_IFDIR)) { in hpfs_mkdir()
107 result->i_uid = current_fsuid(); in hpfs_mkdir()
108 result->i_gid = current_fsgid(); in hpfs_mkdir()
109 result->i_mode = mode | S_IFDIR; in hpfs_mkdir()
110 hpfs_write_inode_nolock(result); in hpfs_mkdir()
113 d_instantiate(dentry, result); in hpfs_mkdir()
117 iput(result); in hpfs_mkdir()
134 struct inode *result = NULL; in hpfs_create() local
155 result = new_inode(dir->i_sb); in hpfs_create()
156 if (!result) in hpfs_create()
159 hpfs_init_inode(result); in hpfs_create()
160 result->i_ino = fno; in hpfs_create()
161 result->i_mode |= S_IFREG; in hpfs_create()
162 result->i_mode &= ~0111; in hpfs_create()
163 result->i_op = &hpfs_file_iops; in hpfs_create()
164 result->i_fop = &hpfs_file_ops; in hpfs_create()
165 set_nlink(result, 1); in hpfs_create()
166 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_create()
167 inode_set_mtime_to_ts(result, in hpfs_create()
168 …inode_set_atime_to_ts(result, inode_set_ctime(result, local_to_gmt(dir->i_sb, le32_to_cpu(dee.crea… in hpfs_create()
169 hpfs_i(result)->i_ea_size = 0; in hpfs_create()
171 result->i_mode &= ~0222; in hpfs_create()
172 result->i_blocks = 1; in hpfs_create()
173 result->i_size = 0; in hpfs_create()
174 result->i_data.a_ops = &hpfs_aops; in hpfs_create()
175 hpfs_i(result)->mmu_private = 0; in hpfs_create()
190 insert_inode_hash(result); in hpfs_create()
192 if (!uid_eq(result->i_uid, current_fsuid()) || in hpfs_create()
193 !gid_eq(result->i_gid, current_fsgid()) || in hpfs_create()
194 result->i_mode != (mode | S_IFREG)) { in hpfs_create()
195 result->i_uid = current_fsuid(); in hpfs_create()
196 result->i_gid = current_fsgid(); in hpfs_create()
197 result->i_mode = mode | S_IFREG; in hpfs_create()
198 hpfs_write_inode_nolock(result); in hpfs_create()
201 d_instantiate(dentry, result); in hpfs_create()
206 iput(result); in hpfs_create()
225 struct inode *result = NULL; in hpfs_mknod() local
241 result = new_inode(dir->i_sb); in hpfs_mknod()
242 if (!result) in hpfs_mknod()
245 hpfs_init_inode(result); in hpfs_mknod()
246 result->i_ino = fno; in hpfs_mknod()
247 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mknod()
248 inode_set_mtime_to_ts(result, in hpfs_mknod()
249 …inode_set_atime_to_ts(result, inode_set_ctime(result, local_to_gmt(dir->i_sb, le32_to_cpu(dee.crea… in hpfs_mknod()
250 hpfs_i(result)->i_ea_size = 0; in hpfs_mknod()
251 result->i_uid = current_fsuid(); in hpfs_mknod()
252 result->i_gid = current_fsgid(); in hpfs_mknod()
253 set_nlink(result, 1); in hpfs_mknod()
254 result->i_size = 0; in hpfs_mknod()
255 result->i_blocks = 1; in hpfs_mknod()
256 init_special_inode(result, mode, rdev); in hpfs_mknod()
270 insert_inode_hash(result); in hpfs_mknod()
272 hpfs_write_inode_nolock(result); in hpfs_mknod()
274 d_instantiate(dentry, result); in hpfs_mknod()
279 iput(result); in hpfs_mknod()
298 struct inode *result; in hpfs_symlink() local
316 result = new_inode(dir->i_sb); in hpfs_symlink()
317 if (!result) in hpfs_symlink()
319 result->i_ino = fno; in hpfs_symlink()
320 hpfs_init_inode(result); in hpfs_symlink()
321 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_symlink()
322 inode_set_mtime_to_ts(result, in hpfs_symlink()
323 …inode_set_atime_to_ts(result, inode_set_ctime(result, local_to_gmt(dir->i_sb, le32_to_cpu(dee.crea… in hpfs_symlink()
324 hpfs_i(result)->i_ea_size = 0; in hpfs_symlink()
325 result->i_mode = S_IFLNK | 0777; in hpfs_symlink()
326 result->i_uid = current_fsuid(); in hpfs_symlink()
327 result->i_gid = current_fsgid(); in hpfs_symlink()
328 result->i_blocks = 1; in hpfs_symlink()
329 set_nlink(result, 1); in hpfs_symlink()
330 result->i_size = strlen(symlink); in hpfs_symlink()
331 inode_nohighmem(result); in hpfs_symlink()
332 result->i_op = &page_symlink_inode_operations; in hpfs_symlink()
333 result->i_data.a_ops = &hpfs_symlink_aops; in hpfs_symlink()
345 hpfs_set_ea(result, fnode, "SYMLINK", symlink, strlen(symlink)); in hpfs_symlink()
349 insert_inode_hash(result); in hpfs_symlink()
351 hpfs_write_inode_nolock(result); in hpfs_symlink()
353 d_instantiate(dentry, result); in hpfs_symlink()
357 iput(result); in hpfs_symlink()