linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* a problem with dget
@ 2003-03-25 16:47 Nir Tzachar
  2003-03-26  9:23 ` Jan Hudec
  2003-03-26 20:43 ` [FiST] " Jerome de Vivie
  0 siblings, 2 replies; 8+ messages in thread
From: Nir Tzachar @ 2003-03-25 16:47 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: fist

hello all.

i encountered a strange problem, involving the reference count of
dentries.

first, let me describe my file system (i'll be brief.. ):
im implementing a file system which is supposed to emulate an object
storage device. i use a wrapper like file system (much like wrapfs,
and actually based on it) to store files on an underlying f/s as objects.

i hope someone can help me, i've been tackling this problem for more than
a week: when i create a file(say "tmp"), all is fine.
the problem arises when i umount and then remount the file system.
after im done with lookup (inode->i_op->lookup), dentry->d_count.counter
==1, as should be. but, when i enter the unlink function
(inode->i_op->unlink ) its dentry->d_count.counter == 0 . why is that?
nowhere in the vfs code does anyone decreases the counter b4
inode->i_op->unlink is called . am i right?

the problem happens every time i try to do a dget an any dentry.

anyway, im sure the problem is in my code, but maybe someone has a hunch
which could help.

thank you all.


========================================================================
nir.









^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-03-30  4:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-25 16:47 a problem with dget Nir Tzachar
2003-03-26  9:23 ` Jan Hudec
2003-03-26  9:45   ` Nir Tzachar
2003-03-26  9:57     ` Jan Hudec
2003-03-26 20:43 ` [FiST] " Jerome de Vivie
2003-03-27  8:17   ` Nir Tzachar
2003-03-28  2:01     ` Erez Zadok
2003-03-30  4:29       ` Nir Tzachar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).