Commit 4b63709861e431e73f0be6b83f420fdd8fc518f5

Authored by Namjae Jeon
Committed by Linus Torvalds
1 parent 32daab969c

fat: use accessor function for msdos_dir_entry 'start'

Use accessor function for msdos_dir_entry 'start'

Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Amit Sahrawat <amit.sahrawat83@gmail.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff

... ... @@ -1141,10 +1141,8 @@
1141 1141 de[0].ctime_cs = de[1].ctime_cs = 0;
1142 1142 de[0].adate = de[0].cdate = de[1].adate = de[1].cdate = 0;
1143 1143 }
1144   - de[0].start = cpu_to_le16(cluster);
1145   - de[0].starthi = cpu_to_le16(cluster >> 16);
1146   - de[1].start = cpu_to_le16(MSDOS_I(dir)->i_logstart);
1147   - de[1].starthi = cpu_to_le16(MSDOS_I(dir)->i_logstart >> 16);
  1144 + fat_set_start(&de[0], cluster);
  1145 + fat_set_start(&de[1], MSDOS_I(dir)->i_logstart);
1148 1146 de[0].size = de[1].size = 0;
1149 1147 memset(de + 2, 0, sb->s_blocksize - 2 * sizeof(*de));
1150 1148 set_buffer_uptodate(bhs[0]);