staging: exfat: drop unused function parameter
sbi parameter not used inside the function so remove it. Also cleanup unused variables generated by this change. Signed-off-by: Valentin Vidic <vvidic@valentin-vidic.from.hr> Link: https://lore.kernel.org/r/20190908173539.26963-1-vvidic@valentin-vidic.from.hr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
56a583d264
commit
2d70718dd5
|
@ -56,8 +56,7 @@ static void exfat_write_super(struct super_block *sb);
|
||||||
#define UNIX_SECS_2108 4354819200L
|
#define UNIX_SECS_2108 4354819200L
|
||||||
|
|
||||||
/* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */
|
/* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */
|
||||||
static void exfat_time_fat2unix(struct exfat_sb_info *sbi,
|
static void exfat_time_fat2unix(struct timespec64 *ts, struct date_time_t *tp)
|
||||||
struct timespec64 *ts, struct date_time_t *tp)
|
|
||||||
{
|
{
|
||||||
ts->tv_sec = mktime64(tp->Year + 1980, tp->Month + 1, tp->Day,
|
ts->tv_sec = mktime64(tp->Year + 1980, tp->Month + 1, tp->Day,
|
||||||
tp->Hour, tp->Minute, tp->Second);
|
tp->Hour, tp->Minute, tp->Second);
|
||||||
|
@ -66,8 +65,7 @@ static void exfat_time_fat2unix(struct exfat_sb_info *sbi,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Convert linear UNIX date to a FAT time/date pair. */
|
/* Convert linear UNIX date to a FAT time/date pair. */
|
||||||
static void exfat_time_unix2fat(struct exfat_sb_info *sbi,
|
static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp)
|
||||||
struct timespec64 *ts, struct date_time_t *tp)
|
|
||||||
{
|
{
|
||||||
time64_t second = ts->tv_sec;
|
time64_t second = ts->tv_sec;
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
|
@ -3349,9 +3347,9 @@ static int exfat_fill_inode(struct inode *inode, struct file_id_t *fid)
|
||||||
inode->i_blocks = ((i_size_read(inode) + (p_fs->cluster_size - 1))
|
inode->i_blocks = ((i_size_read(inode) + (p_fs->cluster_size - 1))
|
||||||
& ~((loff_t)p_fs->cluster_size - 1)) >> 9;
|
& ~((loff_t)p_fs->cluster_size - 1)) >> 9;
|
||||||
|
|
||||||
exfat_time_fat2unix(sbi, &inode->i_mtime, &info.ModifyTimestamp);
|
exfat_time_fat2unix(&inode->i_mtime, &info.ModifyTimestamp);
|
||||||
exfat_time_fat2unix(sbi, &inode->i_ctime, &info.CreateTimestamp);
|
exfat_time_fat2unix(&inode->i_ctime, &info.CreateTimestamp);
|
||||||
exfat_time_fat2unix(sbi, &inode->i_atime, &info.AccessTimestamp);
|
exfat_time_fat2unix(&inode->i_atime, &info.AccessTimestamp);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -3412,8 +3410,6 @@ static void exfat_destroy_inode(struct inode *inode)
|
||||||
|
|
||||||
static int exfat_write_inode(struct inode *inode, struct writeback_control *wbc)
|
static int exfat_write_inode(struct inode *inode, struct writeback_control *wbc)
|
||||||
{
|
{
|
||||||
struct super_block *sb = inode->i_sb;
|
|
||||||
struct exfat_sb_info *sbi = EXFAT_SB(sb);
|
|
||||||
struct dir_entry_t info;
|
struct dir_entry_t info;
|
||||||
|
|
||||||
if (inode->i_ino == EXFAT_ROOT_INO)
|
if (inode->i_ino == EXFAT_ROOT_INO)
|
||||||
|
@ -3422,9 +3418,9 @@ static int exfat_write_inode(struct inode *inode, struct writeback_control *wbc)
|
||||||
info.Attr = exfat_make_attr(inode);
|
info.Attr = exfat_make_attr(inode);
|
||||||
info.Size = i_size_read(inode);
|
info.Size = i_size_read(inode);
|
||||||
|
|
||||||
exfat_time_unix2fat(sbi, &inode->i_mtime, &info.ModifyTimestamp);
|
exfat_time_unix2fat(&inode->i_mtime, &info.ModifyTimestamp);
|
||||||
exfat_time_unix2fat(sbi, &inode->i_ctime, &info.CreateTimestamp);
|
exfat_time_unix2fat(&inode->i_ctime, &info.CreateTimestamp);
|
||||||
exfat_time_unix2fat(sbi, &inode->i_atime, &info.AccessTimestamp);
|
exfat_time_unix2fat(&inode->i_atime, &info.AccessTimestamp);
|
||||||
|
|
||||||
ffsWriteStat(inode, &info);
|
ffsWriteStat(inode, &info);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue