On Mon, Jun 25, 2007 at 06:42:44PM +0200, Jan Kara wrote: > Hi, > > I came across the following question: What is the proper locking for > using i_flags? I've noticed i_flags are read freely without any lock. > The modifications I've seen e.g. in ext3 were done under i_mutex. Is this > right? > BTW it means that when checking i_flags we can see intermediate states > in ext3_set_inode_flags() when all flags are cleared and the proper flags > are not yet set, right? > I'm currently playing with something like inotify for subtree and I'd > need to modify i_flags but using i_mutex unpleasantly interferes with > directory locking... i_lock? - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html