From: "Manish Katiyar" <mkatiyar@gmail.com>
To: "Kernel Newbies" <kernelnewbies@nl.linux.org>,
linux-ext4@vger.kernel.org
Subject: Using tgid instead of pid in ext3_find_near()
Date: Tue, 29 Apr 2008 00:37:35 +0530 [thread overview]
Message-ID: <ea11fea30804281207u5fe9e96bod992dc2bb2d3fc79@mail.gmail.com> (raw)
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
***********************************************
next reply other threads:[~2008-04-28 19:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-28 19:07 Manish Katiyar [this message]
2008-04-29 0:57 ` Using tgid instead of pid in ext3_find_near() Mulyadi Santosa
2008-04-29 4:23 ` Manish Katiyar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea11fea30804281207u5fe9e96bod992dc2bb2d3fc79@mail.gmail.com \
--to=mkatiyar@gmail.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox