lkml.org 
[lkml]   [2012]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] fat: use accessor function for msdos_dir_entry 'start'
From
2012/8/12, OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>:
> 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>
>
Hi. Andrew.

Would you plz check this patch ?

Thanks.


\
 
 \ /
  Last update: 2012-08-18 12:41    [W:0.046 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site