From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Namjae Jeon <linkinjeon@gmail.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
Amit Sahrawat <amit.sahrawat83@gmail.com>
Subject: Re: [PATCH] fat: use accessor function for msdos_dir_entry 'start'
Date: Sun, 12 Aug 2012 13:05:07 +0900 [thread overview]
Message-ID: <871ujclpqk.fsf@devron.myhome.or.jp> (raw)
In-Reply-To: <1344743810-2443-1-git-send-email-linkinjeon@gmail.com> (Namjae Jeon's message of "Sat, 11 Aug 2012 23:56:50 -0400")
Namjae Jeon <linkinjeon@gmail.com> writes:
> Use accessor function for msdos_dir_entry 'start'
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Looks good. Thanks.
> Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
> Signed-off-by: Amit Sahrawat <amit.sahrawat83@gmail.com>
> ---
> fs/fat/dir.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/fs/fat/dir.c b/fs/fat/dir.c
> index 7b1b9c1..2f3e66e 100644
> --- a/fs/fat/dir.c
> +++ b/fs/fat/dir.c
> @@ -1143,10 +1143,8 @@ int fat_alloc_new_dir(struct inode *dir, struct timespec *ts)
> de[0].ctime_cs = de[1].ctime_cs = 0;
> de[0].adate = de[0].cdate = de[1].adate = de[1].cdate = 0;
> }
> - de[0].start = cpu_to_le16(cluster);
> - de[0].starthi = cpu_to_le16(cluster >> 16);
> - de[1].start = cpu_to_le16(MSDOS_I(dir)->i_logstart);
> - de[1].starthi = cpu_to_le16(MSDOS_I(dir)->i_logstart >> 16);
> + fat_set_start(&de[0], cluster);
> + fat_set_start(&de[1], MSDOS_I(dir)->i_logstart);
> de[0].size = de[1].size = 0;
> memset(de + 2, 0, sb->s_blocksize - 2 * sizeof(*de));
> set_buffer_uptodate(bhs[0]);
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
next prev parent reply other threads:[~2012-08-12 4:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-12 3:56 Namjae Jeon
2012-08-12 4:05 ` OGAWA Hirofumi [this message]
2012-08-18 9:54 ` Namjae Jeon
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=871ujclpqk.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=akpm@linux-foundation.org \
--cc=amit.sahrawat83@gmail.com \
--cc=linkinjeon@gmail.com \
--cc=linux-kernel@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
Powered by JetHome