Marking inode dirty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I know that the superblock contains a list of all the dirty inodes for
the filesystem (e.g.. ext2). and inorder to do it we just need to call
mark_inode_dirty() or mark_inode_dirty_sync(). However if the inode is
not hashed it won't be added to the list and just the dirty flag will
be set. (that is what the comment above those functions say).

I want to know that if an inode has a dentry attached to it can I
assume that it is always hashed and is safe to call mark_inode_dirty()
on such
inodes. Also if it doesn't have a dentry is doing the calls below
sufficient and correct thing to do ?

d_instantiate(dentry,inode);
mark_inode_dirty(inode);

Thanks & Regards,
********************************************
Manish Katiyar ( http://mkatiyar.googlepages.com )
3rd Floor, Fair Winds Block
EGL Software Park
Off Intermediate Ring Road
Bangalore 560071, India
***********************************************

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux