On Fri, Mar 20, 2009 at 11:19 AM, Abhishek Sharma <[email protected]>wrote:

>  I understand that the kernel locks an inode during system calls. Say for
> example the kernel has read an inode in main memory due to a particular
> system call and all the fields are set.
>
>    But i dint clearly understand how does  reference count associated with
> an inode work and whats its use?
>
> -Abhishek.
>
>
Hi Abhishek,

The inode reference count is not related to the locks.

An inode's reference count value indicates the number of hard links pointing
to the inode.
It is decremented every time a hard link is deleted  (file pertaining to a
hard link is removed). The file is deleted only when the reference count
reaches zero.

Namita


[Non-text portions of this message have been removed]

Reply via email to