Scalability improvements when allocating inodes, and some
miscellaneous bug fixes and cleanups.
-----BEGIN PGP SIGNATURE-----
iQEzBAABCAAdFiEEK2m5VNv+CHkogTfJ8vlZVpUNgaMFAlms4KwACgkQ8vlZVpUN
gaMsNwf9EDIaB7uMAFIRw8TzszbYKE3K3T412s18zce+kYea6wZPkQavWH/qMYgU
r8jmXfDi3KZJJBI8fFW4qh36qs/fJoOeQOD3BTHcczEJqaaOiahaxfSylTwezDfw
fIkEMCfBj6Vyldo0aKrtM4iU07Njj7QmYBtsiJo1kpyAuZ7wuoaiyizCLRb0fhLB
AnBOs2ur9fQvn954M03tJIKpxFgmbpofM7yMtJYpW9dHCCWe2G+sIdBy/W6vVTxt
sJIzUGyyEFs9Hr8U8THbuo5XgScFh+NEOkj/cf60t5ZYxwZzJvY7+Oj7BQwxEM1p
Efcjz2kRLU8qSYHOHxCar0D3MW+oNQ==
=E7gL
-----END PGP SIGNATURE-----
Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
Pull ext4 updates from Ted Ts'o:
"Scalability improvements when allocating inodes, and some
miscellaneous bug fixes and cleanups"
* tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
ext4: avoid Y2038 overflow in recently_deleted()
ext4: fix fault handling when mounted with -o dax,ro
ext4: fix quota inconsistency during orphan cleanup for read-only mounts
ext4: fix incorrect quotaoff if the quota feature is enabled
ext4: remove useless test and assignment in strtohash functions
ext4: backward compatibility support for Lustre ea_inode implementation
ext4: remove timebomb in ext4_decode_extra_time()
ext4: use sizeof(*ptr)
ext4: in ext4_seek_{hole,data}, return -ENXIO for negative offsets
ext4: reduce lock contention in __ext4_new_inode
ext4: cleanup goto next group
ext4: do not unnecessarily allocate buffer in recently_deleted()
This commit is contained in:
commit
be6297e9be
10 changed files with 222 additions and 111 deletions
|
|
@ -285,4 +285,19 @@ static inline bool itimerspec64_valid(const struct itimerspec64 *its)
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* time_after32 - compare two 32-bit relative times
|
||||
* @a: the time which may be after @b
|
||||
* @b: the time which may be before @a
|
||||
*
|
||||
* time_after32(a, b) returns true if the time @a is after time @b.
|
||||
* time_before32(b, a) returns true if the time @b is before time @a.
|
||||
*
|
||||
* Similar to time_after(), compare two 32-bit timestamps for relative
|
||||
* times. This is useful for comparing 32-bit seconds values that can't
|
||||
* be converted to 64-bit values (e.g. due to disk format or wire protocol
|
||||
* issues) when it is known that the times are less than 68 years apart.
|
||||
*/
|
||||
#define time_after32(a, b) ((s32)((u32)(b) - (u32)(a)) < 0)
|
||||
#define time_before32(b, a) time_after32(a, b)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue