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 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mkdir()
62 result->i_ctime.tv_nsec = 0; in hpfs_mkdir()
63 result->i_mtime.tv_nsec = 0; in hpfs_mkdir()
64 result->i_atime.tv_nsec = 0; in hpfs_mkdir()
65 hpfs_i(result)->i_ea_size = 0; in hpfs_mkdir()
66 result->i_mode |= S_IFDIR; in hpfs_mkdir()
67 result->i_op = &hpfs_dir_iops; in hpfs_mkdir()
68 result->i_fop = &hpfs_dir_ops; in hpfs_mkdir()
69 result->i_blocks = 4; in hpfs_mkdir()
70 result->i_size = 2048; in hpfs_mkdir()
71 set_nlink(result, 2); in hpfs_mkdir()
73 result->i_mode &= ~0222; in hpfs_mkdir()
104 insert_inode_hash(result); in hpfs_mkdir()
106 if (!uid_eq(result->i_uid, current_fsuid()) || in hpfs_mkdir()
107 !gid_eq(result->i_gid, current_fsgid()) || in hpfs_mkdir()
108 result->i_mode != (mode | S_IFDIR)) { in hpfs_mkdir()
109 result->i_uid = current_fsuid(); in hpfs_mkdir()
110 result->i_gid = current_fsgid(); in hpfs_mkdir()
111 result->i_mode = mode | S_IFDIR; in hpfs_mkdir()
112 hpfs_write_inode_nolock(result); in hpfs_mkdir()
115 d_instantiate(dentry, result); in hpfs_mkdir()
119 iput(result); in hpfs_mkdir()
135 struct inode *result = NULL; in hpfs_create() local
156 result = new_inode(dir->i_sb); in hpfs_create()
157 if (!result) in hpfs_create()
160 hpfs_init_inode(result); in hpfs_create()
161 result->i_ino = fno; in hpfs_create()
162 result->i_mode |= S_IFREG; in hpfs_create()
163 result->i_mode &= ~0111; in hpfs_create()
164 result->i_op = &hpfs_file_iops; in hpfs_create()
165 result->i_fop = &hpfs_file_ops; in hpfs_create()
166 set_nlink(result, 1); in hpfs_create()
167 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_create()
168 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_create()
169 result->i_ctime.tv_nsec = 0; in hpfs_create()
170 result->i_mtime.tv_nsec = 0; in hpfs_create()
171 result->i_atime.tv_nsec = 0; in hpfs_create()
172 hpfs_i(result)->i_ea_size = 0; in hpfs_create()
174 result->i_mode &= ~0222; in hpfs_create()
175 result->i_blocks = 1; in hpfs_create()
176 result->i_size = 0; in hpfs_create()
177 result->i_data.a_ops = &hpfs_aops; in hpfs_create()
178 hpfs_i(result)->mmu_private = 0; in hpfs_create()
193 insert_inode_hash(result); in hpfs_create()
195 if (!uid_eq(result->i_uid, current_fsuid()) || in hpfs_create()
196 !gid_eq(result->i_gid, current_fsgid()) || in hpfs_create()
197 result->i_mode != (mode | S_IFREG)) { in hpfs_create()
198 result->i_uid = current_fsuid(); in hpfs_create()
199 result->i_gid = current_fsgid(); in hpfs_create()
200 result->i_mode = mode | S_IFREG; in hpfs_create()
201 hpfs_write_inode_nolock(result); in hpfs_create()
204 d_instantiate(dentry, result); in hpfs_create()
209 iput(result); in hpfs_create()
227 struct inode *result = NULL; in hpfs_mknod() local
243 result = new_inode(dir->i_sb); in hpfs_mknod()
244 if (!result) in hpfs_mknod()
247 hpfs_init_inode(result); in hpfs_mknod()
248 result->i_ino = fno; in hpfs_mknod()
249 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mknod()
250 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mknod()
251 result->i_ctime.tv_nsec = 0; in hpfs_mknod()
252 result->i_mtime.tv_nsec = 0; in hpfs_mknod()
253 result->i_atime.tv_nsec = 0; in hpfs_mknod()
254 hpfs_i(result)->i_ea_size = 0; in hpfs_mknod()
255 result->i_uid = current_fsuid(); in hpfs_mknod()
256 result->i_gid = current_fsgid(); in hpfs_mknod()
257 set_nlink(result, 1); in hpfs_mknod()
258 result->i_size = 0; in hpfs_mknod()
259 result->i_blocks = 1; in hpfs_mknod()
260 init_special_inode(result, mode, rdev); in hpfs_mknod()
274 insert_inode_hash(result); in hpfs_mknod()
276 hpfs_write_inode_nolock(result); in hpfs_mknod()
278 d_instantiate(dentry, result); in hpfs_mknod()
283 iput(result); in hpfs_mknod()
301 struct inode *result; in hpfs_symlink() local
319 result = new_inode(dir->i_sb); in hpfs_symlink()
320 if (!result) in hpfs_symlink()
322 result->i_ino = fno; in hpfs_symlink()
323 hpfs_init_inode(result); in hpfs_symlink()
324 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_symlink()
325 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_symlink()
326 result->i_ctime.tv_nsec = 0; in hpfs_symlink()
327 result->i_mtime.tv_nsec = 0; in hpfs_symlink()
328 result->i_atime.tv_nsec = 0; in hpfs_symlink()
329 hpfs_i(result)->i_ea_size = 0; in hpfs_symlink()
330 result->i_mode = S_IFLNK | 0777; in hpfs_symlink()
331 result->i_uid = current_fsuid(); in hpfs_symlink()
332 result->i_gid = current_fsgid(); in hpfs_symlink()
333 result->i_blocks = 1; in hpfs_symlink()
334 set_nlink(result, 1); in hpfs_symlink()
335 result->i_size = strlen(symlink); in hpfs_symlink()
336 inode_nohighmem(result); in hpfs_symlink()
337 result->i_op = &page_symlink_inode_operations; in hpfs_symlink()
338 result->i_data.a_ops = &hpfs_symlink_aops; in hpfs_symlink()
350 hpfs_set_ea(result, fnode, "SYMLINK", symlink, strlen(symlink)); in hpfs_symlink()
354 insert_inode_hash(result); in hpfs_symlink()
356 hpfs_write_inode_nolock(result); in hpfs_symlink()
358 d_instantiate(dentry, result); in hpfs_symlink()
362 iput(result); in hpfs_symlink()