From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] FAT: small cleanup (3/4)
Date: Sun, 02 May 2004 22:10:31 +0900 [thread overview]
Message-ID: <87wu3vrn3s.fsf@devron.myhome.or.jp> (raw)
Hi,
just small cleanup.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
fs/fat/file.c | 2 +-
fs/fat/misc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff -puN fs/fat/misc.c~fat_micro-cleanup fs/fat/misc.c
--- linux-2.6.6-rc3/fs/fat/misc.c~fat_micro-cleanup 2004-05-02 19:15:43.000000000 +0900
+++ linux-2.6.6-rc3-hirofumi/fs/fat/misc.c 2004-05-02 19:15:43.000000000 +0900
@@ -205,7 +205,7 @@ struct buffer_head *fat_extend_dir(struc
if (inode->i_size & (sb->s_blocksize - 1)) {
fat_fs_panic(sb, "Odd directory size");
inode->i_size = (inode->i_size + sb->s_blocksize)
- & ~(sb->s_blocksize - 1);
+ & ~((loff_t)sb->s_blocksize - 1);
}
inode->i_size += MSDOS_SB(sb)->cluster_size;
MSDOS_I(inode)->mmu_private += MSDOS_SB(sb)->cluster_size;
diff -puN fs/fat/file.c~fat_micro-cleanup fs/fat/file.c
--- linux-2.6.6-rc3/fs/fat/file.c~fat_micro-cleanup 2004-05-02 19:15:43.000000000 +0900
+++ linux-2.6.6-rc3-hirofumi/fs/fat/file.c 2004-05-02 19:15:43.000000000 +0900
@@ -50,7 +50,7 @@ int fat_get_block(struct inode *inode, s
BUG();
return -EIO;
}
- if (!((unsigned long)iblock % MSDOS_SB(sb)->sec_per_clus)) {
+ if (!((unsigned long)iblock & (MSDOS_SB(sb)->sec_per_clus - 1))) {
int error;
error = fat_add_cluster(inode);
_
reply other threads:[~2004-05-02 13:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87wu3vrn3s.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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