Home
last modified time | relevance | path

Searched refs:secs (Results 1 – 5 of 5) sorted by relevance

/fs/hpfs/
Danode.c399 void hpfs_truncate_btree(struct super_block *s, secno f, int fno, unsigned secs) in hpfs_truncate_btree() argument
415 if (!secs) { in hpfs_truncate_btree()
430 if (le32_to_cpu(btree->u.internal[i].file_secno) >= secs) goto f; in hpfs_truncate_btree()
441 if (btree->u.internal[i].file_secno == cpu_to_le32(secs)) { in hpfs_truncate_btree()
455 …o_cpu(btree->u.external[i].file_secno) + le32_to_cpu(btree->u.external[i].length) >= secs) goto ff; in hpfs_truncate_btree()
459 if (secs <= le32_to_cpu(btree->u.external[i].file_secno)) { in hpfs_truncate_btree()
460 hpfs_error(s, "there is an allocation error in file %08x, sector %08x", f, secs); in hpfs_truncate_btree()
463 … (le32_to_cpu(btree->u.external[i].file_secno) + le32_to_cpu(btree->u.external[i].length) > secs) { in hpfs_truncate_btree()
464 hpfs_free_sectors(s, le32_to_cpu(btree->u.external[i].disk_secno) + secs - in hpfs_truncate_btree()
466 - secs + le32_to_cpu(btree->u.external[i].file_secno)); /* I hope gcc optimizes this :-) */ in hpfs_truncate_btree()
[all …]
/fs/ksmbd/
Dtransport_tcp.c59 static inline void ksmbd_tcp_rcv_timeout(struct socket *sock, s64 secs) in ksmbd_tcp_rcv_timeout() argument
62 if (secs && secs < MAX_SCHEDULE_TIMEOUT / HZ - 1) in ksmbd_tcp_rcv_timeout()
63 sock->sk->sk_rcvtimeo = secs * HZ; in ksmbd_tcp_rcv_timeout()
69 static inline void ksmbd_tcp_snd_timeout(struct socket *sock, s64 secs) in ksmbd_tcp_snd_timeout() argument
71 sock_set_sndtimeo(sock->sk, secs); in ksmbd_tcp_snd_timeout()
/fs/f2fs/
Dgc.c1978 unsigned int secs, bool gc_only) in free_segment_range() argument
1987 MAIN_SECS(sbi) -= secs; in free_segment_range()
2038 MAIN_SECS(sbi) += secs; in free_segment_range()
2042 static void update_sb_metadata(struct f2fs_sb_info *sbi, int secs) in update_sb_metadata() argument
2049 int segs = secs * sbi->segs_per_sec; in update_sb_metadata()
2058 raw_sb->section_count = cpu_to_le32(section_count + secs); in update_sb_metadata()
2075 static void update_fs_metadata(struct f2fs_sb_info *sbi, int secs) in update_fs_metadata() argument
2077 int segs = secs * sbi->segs_per_sec; in update_fs_metadata()
2084 MAIN_SECS(sbi) += secs; in update_fs_metadata()
2085 FREE_I(sbi)->free_sections = (int)FREE_I(sbi)->free_sections + secs; in update_fs_metadata()
[all …]
/fs/affs/
Damigaffs.c372 affs_secs_to_datestamp(time64_t secs, struct affs_date *ds) in affs_secs_to_datestamp() argument
378 secs -= sys_tz.tz_minuteswest * 60 + AFFS_EPOCH_DELTA; in affs_secs_to_datestamp()
379 if (secs < 0) in affs_secs_to_datestamp()
380 secs = 0; in affs_secs_to_datestamp()
381 days = div_s64_rem(secs, 86400, &rem); in affs_secs_to_datestamp()
Daffs.h142 extern void affs_secs_to_datestamp(time64_t secs, struct affs_date *ds);