Lines Matching refs:dip
53 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_create() local
58 gfs2_holder_init(dip->i_gl, 0, 0, ghs); in gfs2_create()
64 if (dip->i_alloc->al_rgd) in gfs2_create()
65 gfs2_inplace_release(dip); in gfs2_create()
66 gfs2_quota_unlock(dip); in gfs2_create()
67 gfs2_alloc_put(dip); in gfs2_create()
148 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_link() local
159 gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_link()
185 if (!dip->i_inode.i_nlink) in gfs2_link()
188 if (dip->i_entries == (u32)-1) in gfs2_link()
206 struct gfs2_alloc *al = gfs2_alloc_get(dip); in gfs2_link()
212 error = gfs2_quota_lock_check(dip); in gfs2_link()
218 error = gfs2_inplace_reserve(dip); in gfs2_link()
244 gfs2_inplace_release(dip); in gfs2_link()
247 gfs2_quota_unlock(dip); in gfs2_link()
250 gfs2_alloc_put(dip); in gfs2_link()
278 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_unlink() local
290 gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_unlink()
309 error = gfs2_unlink_ok(dip, &dentry->d_name, ip); in gfs2_unlink()
317 error = gfs2_dir_del(dip, &dentry->d_name); in gfs2_unlink()
351 struct gfs2_inode *dip = GFS2_I(dir), *ip; in gfs2_symlink() local
364 gfs2_holder_init(dip->i_gl, 0, 0, ghs); in gfs2_symlink()
386 if (dip->i_alloc->al_rgd) in gfs2_symlink()
387 gfs2_inplace_release(dip); in gfs2_symlink()
388 gfs2_quota_unlock(dip); in gfs2_symlink()
389 gfs2_alloc_put(dip); in gfs2_symlink()
410 struct gfs2_inode *dip = GFS2_I(dir), *ip; in gfs2_mkdir() local
417 gfs2_holder_init(dip->i_gl, 0, 0, ghs); in gfs2_mkdir()
450 gfs2_inum_out(dip, dent); in gfs2_mkdir()
458 error = gfs2_change_nlink(dip, +1); in gfs2_mkdir()
462 if (dip->i_alloc->al_rgd) in gfs2_mkdir()
463 gfs2_inplace_release(dip); in gfs2_mkdir()
464 gfs2_quota_unlock(dip); in gfs2_mkdir()
465 gfs2_alloc_put(dip); in gfs2_mkdir()
487 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_rmdir() local
498 gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_rmdir()
516 error = gfs2_unlink_ok(dip, &dentry->d_name, ip); in gfs2_rmdir()
535 error = gfs2_rmdiri(dip, &dentry->d_name, ip); in gfs2_rmdir()
565 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_mknod() local
570 gfs2_holder_init(dip->i_gl, 0, 0, ghs); in gfs2_mknod()
579 if (dip->i_alloc->al_rgd) in gfs2_mknod()
580 gfs2_inplace_release(dip); in gfs2_mknod()
581 gfs2_quota_unlock(dip); in gfs2_mknod()
582 gfs2_alloc_put(dip); in gfs2_mknod()