Re: ext2_find_near

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

 



On 29-07-08 21:35, Rohit Sharma wrote:

I was going through the function "ext2_find_near" in inode.c and
could not interpret the meaning of the last part of this code :

Am definitely not an fs person, but the comment just above ext2_find_near() explains a bit.

Colouring the location like that lessens the chances of a concurrent allocation -- supposedly from a different PID -- finding the exact same spot and both of them clashing at the point where the actual allocation happens (so that, I suppose, one of them must go back and try to find a new location all over again).

Now whether or "pid % 16" is actually a good colour in practice...

Rene.

--
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