diff options
author | Namjae Jeon <linkinjeon@gmail.com> | 2012-10-04 17:14:41 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-06 03:05:08 +0900 |
commit | 4b63709861e431e73f0be6b83f420fdd8fc518f5 (patch) | |
tree | a014983084e4a94aa9f2b39fa36e942c508c2e0f /fs/fat | |
parent | 32daab969cc16e263a544d9330972b25a0081851 (diff) |
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>
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/dir.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/fat/dir.c b/fs/fat/dir.c index dc49ed2cbff..d70d8f31f70 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c @@ -1141,10 +1141,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]); |