inode.c (6784725ab0b9473ce44bfad91a256bd72b5cddc1) inode.c (71680c18c8f22deafbaaf76d1c2d0eed2899a3d2)
1/*
2 * (C) 2001 Clemson University and The University of Chicago
3 *
4 * See COPYING in top-level directory.
5 */
6
7/*
8 * Linux VFS inode operations.

--- 248 unchanged lines hidden (view full) ---

257 int ret = -ENOENT;
258 struct inode *inode = dentry->d_inode;
259 struct orangefs_inode_s *orangefs_inode = NULL;
260
261 gossip_debug(GOSSIP_INODE_DEBUG,
262 "orangefs_getattr: called on %s\n",
263 dentry->d_name.name);
264
1/*
2 * (C) 2001 Clemson University and The University of Chicago
3 *
4 * See COPYING in top-level directory.
5 */
6
7/*
8 * Linux VFS inode operations.

--- 248 unchanged lines hidden (view full) ---

257 int ret = -ENOENT;
258 struct inode *inode = dentry->d_inode;
259 struct orangefs_inode_s *orangefs_inode = NULL;
260
261 gossip_debug(GOSSIP_INODE_DEBUG,
262 "orangefs_getattr: called on %s\n",
263 dentry->d_name.name);
264
265 ret = orangefs_inode_getattr(inode, 0, 1);
265 ret = orangefs_inode_getattr(inode, 0, 0);
266 if (ret == 0) {
267 generic_fillattr(inode, kstat);
268
269 /* override block size reported to stat */
270 orangefs_inode = ORANGEFS_I(inode);
271 kstat->blksize = orangefs_inode->blksize;
272 }
273 return ret;

--- 105 unchanged lines hidden (view full) ---

379 unsigned long hash;
380 int error;
381
382 hash = orangefs_handle_hash(ref);
383 inode = iget5_locked(sb, hash, orangefs_test_inode, orangefs_set_inode, ref);
384 if (!inode || !(inode->i_state & I_NEW))
385 return inode;
386
266 if (ret == 0) {
267 generic_fillattr(inode, kstat);
268
269 /* override block size reported to stat */
270 orangefs_inode = ORANGEFS_I(inode);
271 kstat->blksize = orangefs_inode->blksize;
272 }
273 return ret;

--- 105 unchanged lines hidden (view full) ---

379 unsigned long hash;
380 int error;
381
382 hash = orangefs_handle_hash(ref);
383 inode = iget5_locked(sb, hash, orangefs_test_inode, orangefs_set_inode, ref);
384 if (!inode || !(inode->i_state & I_NEW))
385 return inode;
386
387 error = orangefs_inode_getattr(inode, 1, 0);
387 error = orangefs_inode_getattr(inode, 1, 1);
388 if (error) {
389 iget_failed(inode);
390 return ERR_PTR(error);
391 }
392
393 inode->i_ino = hash; /* needed for stat etc */
394 orangefs_init_iops(inode);
395 unlock_new_inode(inode);

--- 28 unchanged lines hidden (view full) ---

424
425 inode = new_inode(sb);
426 if (!inode)
427 return NULL;
428
429 orangefs_set_inode(inode, ref);
430 inode->i_ino = hash; /* needed for stat etc */
431
388 if (error) {
389 iget_failed(inode);
390 return ERR_PTR(error);
391 }
392
393 inode->i_ino = hash; /* needed for stat etc */
394 orangefs_init_iops(inode);
395 unlock_new_inode(inode);

--- 28 unchanged lines hidden (view full) ---

424
425 inode = new_inode(sb);
426 if (!inode)
427 return NULL;
428
429 orangefs_set_inode(inode, ref);
430 inode->i_ino = hash; /* needed for stat etc */
431
432 error = orangefs_inode_getattr(inode, 1, 0);
432 error = orangefs_inode_getattr(inode, 1, 1);
433 if (error)
434 goto out_iput;
435
436 orangefs_init_iops(inode);
437
438 inode->i_mode = mode;
439 inode->i_uid = current_fsuid();
440 inode->i_gid = current_fsgid();

--- 18 unchanged lines hidden ---
433 if (error)
434 goto out_iput;
435
436 orangefs_init_iops(inode);
437
438 inode->i_mode = mode;
439 inode->i_uid = current_fsuid();
440 inode->i_gid = current_fsgid();

--- 18 unchanged lines hidden ---