• Home
  • Raw
  • Download

Lines Matching refs:dl

216 	struct ocfs2_dentry_lock *dl = dentry->d_fsdata;  in ocfs2_dentry_attach_lock()  local
219 (unsigned long long)parent_blkno, dl); in ocfs2_dentry_attach_lock()
233 dentry->d_fsdata = dl = NULL; in ocfs2_dentry_attach_lock()
236 if (dl) { in ocfs2_dentry_attach_lock()
237 mlog_bug_on_msg(dl->dl_parent_blkno != parent_blkno, in ocfs2_dentry_attach_lock()
241 (unsigned long long)dl->dl_parent_blkno); in ocfs2_dentry_attach_lock()
258 dl = alias->d_fsdata; in ocfs2_dentry_attach_lock()
259 mlog_bug_on_msg(!dl, "parent %llu, ino %llu\n", in ocfs2_dentry_attach_lock()
263 mlog_bug_on_msg(dl->dl_parent_blkno != parent_blkno, in ocfs2_dentry_attach_lock()
267 (unsigned long long)dl->dl_parent_blkno); in ocfs2_dentry_attach_lock()
269 trace_ocfs2_dentry_attach_lock_found(dl->dl_lockres.l_name, in ocfs2_dentry_attach_lock()
279 dl = kmalloc(sizeof(*dl), GFP_NOFS); in ocfs2_dentry_attach_lock()
280 if (!dl) { in ocfs2_dentry_attach_lock()
286 dl->dl_count = 0; in ocfs2_dentry_attach_lock()
291 dl->dl_inode = igrab(inode); in ocfs2_dentry_attach_lock()
292 dl->dl_parent_blkno = parent_blkno; in ocfs2_dentry_attach_lock()
293 ocfs2_dentry_lock_res_init(dl, parent_blkno, inode); in ocfs2_dentry_attach_lock()
303 iput(dl->dl_inode); in ocfs2_dentry_attach_lock()
304 ocfs2_lock_res_free(&dl->dl_lockres); in ocfs2_dentry_attach_lock()
305 kfree(dl); in ocfs2_dentry_attach_lock()
309 dentry->d_fsdata = dl; in ocfs2_dentry_attach_lock()
310 dl->dl_count++; in ocfs2_dentry_attach_lock()
330 ocfs2_lock_res_free(&dl->dl_lockres); in ocfs2_dentry_attach_lock()
331 BUG_ON(dl->dl_count != 1); in ocfs2_dentry_attach_lock()
335 kfree(dl); in ocfs2_dentry_attach_lock()
366 struct ocfs2_dentry_lock *dl) in ocfs2_drop_dentry_lock() argument
368 iput(dl->dl_inode); in ocfs2_drop_dentry_lock()
369 ocfs2_simple_drop_lockres(osb, &dl->dl_lockres); in ocfs2_drop_dentry_lock()
370 ocfs2_lock_res_free(&dl->dl_lockres); in ocfs2_drop_dentry_lock()
371 kfree(dl); in ocfs2_drop_dentry_lock()
375 struct ocfs2_dentry_lock *dl) in ocfs2_dentry_lock_put() argument
379 BUG_ON(dl->dl_count == 0); in ocfs2_dentry_lock_put()
382 dl->dl_count--; in ocfs2_dentry_lock_put()
383 unlock = !dl->dl_count; in ocfs2_dentry_lock_put()
387 ocfs2_drop_dentry_lock(osb, dl); in ocfs2_dentry_lock_put()
392 struct ocfs2_dentry_lock *dl = dentry->d_fsdata; in ocfs2_dentry_iput() local
394 if (!dl) { in ocfs2_dentry_iput()
412 mlog_bug_on_msg(dl->dl_count == 0, "dentry: %pd, count: %u\n", in ocfs2_dentry_iput()
413 dentry, dl->dl_count); in ocfs2_dentry_iput()
415 ocfs2_dentry_lock_put(OCFS2_SB(dentry->d_sb), dl); in ocfs2_dentry_iput()