Lines Matching refs:result

33 	struct inode *result;  in hpfs_mkdir()  local
55 result = new_inode(dir->i_sb); in hpfs_mkdir()
56 if (!result) in hpfs_mkdir()
58 hpfs_init_inode(result); in hpfs_mkdir()
59 result->i_ino = fno; in hpfs_mkdir()
60 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mkdir()
61 hpfs_i(result)->i_dno = dno; in hpfs_mkdir()
62result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mkdir()
63 result->i_ctime.tv_nsec = 0; in hpfs_mkdir()
64 result->i_mtime.tv_nsec = 0; in hpfs_mkdir()
65 result->i_atime.tv_nsec = 0; in hpfs_mkdir()
66 hpfs_i(result)->i_ea_size = 0; in hpfs_mkdir()
67 result->i_mode |= S_IFDIR; in hpfs_mkdir()
68 result->i_op = &hpfs_dir_iops; in hpfs_mkdir()
69 result->i_fop = &hpfs_dir_ops; in hpfs_mkdir()
70 result->i_blocks = 4; in hpfs_mkdir()
71 result->i_size = 2048; in hpfs_mkdir()
72 set_nlink(result, 2); in hpfs_mkdir()
74 result->i_mode &= ~0222; in hpfs_mkdir()
105 insert_inode_hash(result); in hpfs_mkdir()
107 if (!uid_eq(result->i_uid, current_fsuid()) || in hpfs_mkdir()
108 !gid_eq(result->i_gid, current_fsgid()) || in hpfs_mkdir()
109 result->i_mode != (mode | S_IFDIR)) { in hpfs_mkdir()
110 result->i_uid = current_fsuid(); in hpfs_mkdir()
111 result->i_gid = current_fsgid(); in hpfs_mkdir()
112 result->i_mode = mode | S_IFDIR; in hpfs_mkdir()
113 hpfs_write_inode_nolock(result); in hpfs_mkdir()
116 d_instantiate(dentry, result); in hpfs_mkdir()
120 iput(result); in hpfs_mkdir()
137 struct inode *result = NULL; in hpfs_create() local
158 result = new_inode(dir->i_sb); in hpfs_create()
159 if (!result) in hpfs_create()
162 hpfs_init_inode(result); in hpfs_create()
163 result->i_ino = fno; in hpfs_create()
164 result->i_mode |= S_IFREG; in hpfs_create()
165 result->i_mode &= ~0111; in hpfs_create()
166 result->i_op = &hpfs_file_iops; in hpfs_create()
167 result->i_fop = &hpfs_file_ops; in hpfs_create()
168 set_nlink(result, 1); in hpfs_create()
169 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_create()
170result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_create()
171 result->i_ctime.tv_nsec = 0; in hpfs_create()
172 result->i_mtime.tv_nsec = 0; in hpfs_create()
173 result->i_atime.tv_nsec = 0; in hpfs_create()
174 hpfs_i(result)->i_ea_size = 0; in hpfs_create()
176 result->i_mode &= ~0222; in hpfs_create()
177 result->i_blocks = 1; in hpfs_create()
178 result->i_size = 0; in hpfs_create()
179 result->i_data.a_ops = &hpfs_aops; in hpfs_create()
180 hpfs_i(result)->mmu_private = 0; in hpfs_create()
195 insert_inode_hash(result); in hpfs_create()
197 if (!uid_eq(result->i_uid, current_fsuid()) || in hpfs_create()
198 !gid_eq(result->i_gid, current_fsgid()) || in hpfs_create()
199 result->i_mode != (mode | S_IFREG)) { in hpfs_create()
200 result->i_uid = current_fsuid(); in hpfs_create()
201 result->i_gid = current_fsgid(); in hpfs_create()
202 result->i_mode = mode | S_IFREG; in hpfs_create()
203 hpfs_write_inode_nolock(result); in hpfs_create()
206 d_instantiate(dentry, result); in hpfs_create()
211 iput(result); in hpfs_create()
230 struct inode *result = NULL; in hpfs_mknod() local
246 result = new_inode(dir->i_sb); in hpfs_mknod()
247 if (!result) in hpfs_mknod()
250 hpfs_init_inode(result); in hpfs_mknod()
251 result->i_ino = fno; in hpfs_mknod()
252 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mknod()
253result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mknod()
254 result->i_ctime.tv_nsec = 0; in hpfs_mknod()
255 result->i_mtime.tv_nsec = 0; in hpfs_mknod()
256 result->i_atime.tv_nsec = 0; in hpfs_mknod()
257 hpfs_i(result)->i_ea_size = 0; in hpfs_mknod()
258 result->i_uid = current_fsuid(); in hpfs_mknod()
259 result->i_gid = current_fsgid(); in hpfs_mknod()
260 set_nlink(result, 1); in hpfs_mknod()
261 result->i_size = 0; in hpfs_mknod()
262 result->i_blocks = 1; in hpfs_mknod()
263 init_special_inode(result, mode, rdev); in hpfs_mknod()
277 insert_inode_hash(result); in hpfs_mknod()
279 hpfs_write_inode_nolock(result); in hpfs_mknod()
281 d_instantiate(dentry, result); in hpfs_mknod()
286 iput(result); in hpfs_mknod()
305 struct inode *result; in hpfs_symlink() local
323 result = new_inode(dir->i_sb); in hpfs_symlink()
324 if (!result) in hpfs_symlink()
326 result->i_ino = fno; in hpfs_symlink()
327 hpfs_init_inode(result); in hpfs_symlink()
328 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_symlink()
329result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_symlink()
330 result->i_ctime.tv_nsec = 0; in hpfs_symlink()
331 result->i_mtime.tv_nsec = 0; in hpfs_symlink()
332 result->i_atime.tv_nsec = 0; in hpfs_symlink()
333 hpfs_i(result)->i_ea_size = 0; in hpfs_symlink()
334 result->i_mode = S_IFLNK | 0777; in hpfs_symlink()
335 result->i_uid = current_fsuid(); in hpfs_symlink()
336 result->i_gid = current_fsgid(); in hpfs_symlink()
337 result->i_blocks = 1; in hpfs_symlink()
338 set_nlink(result, 1); in hpfs_symlink()
339 result->i_size = strlen(symlink); in hpfs_symlink()
340 inode_nohighmem(result); in hpfs_symlink()
341 result->i_op = &page_symlink_inode_operations; in hpfs_symlink()
342 result->i_data.a_ops = &hpfs_symlink_aops; in hpfs_symlink()
354 hpfs_set_ea(result, fnode, "SYMLINK", symlink, strlen(symlink)); in hpfs_symlink()
358 insert_inode_hash(result); in hpfs_symlink()
360 hpfs_write_inode_nolock(result); in hpfs_symlink()
362 d_instantiate(dentry, result); in hpfs_symlink()
366 iput(result); in hpfs_symlink()