public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* Using tgid instead of pid in ext3_find_near()
@ 2008-04-28 19:07 Manish Katiyar
  2008-04-29  0:57 ` Mulyadi Santosa
  0 siblings, 1 reply; 3+ messages in thread
From: Manish Katiyar @ 2008-04-28 19:07 UTC (permalink / raw)
  To: Kernel Newbies, linux-ext4

Hi,

In the function ext*_find_near() we are using pid to have the locality
of the blocks for the files which have same functionality. Shouldn't
we be using "current->tgid" here instead ??

410 static ext3_fsblk_t ext3_find_near(struct inode *inode, Indirect *ind)
 411 {
.........
........
433  colour = (current->pid % 16) *
 434    (EXT3_BLOCKS_PER_GROUP(inode->i_sb) / 16);
........

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

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

end of thread, other threads:[~2008-04-29  4:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-28 19:07 Using tgid instead of pid in ext3_find_near() Manish Katiyar
2008-04-29  0:57 ` Mulyadi Santosa
2008-04-29  4:23   ` Manish Katiyar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox