MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / ext3_rec_len_to_disk

Function ext3_rec_len_to_disk

Ext4Fsd/include/linux/ext4.h:3305–3312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3303}
3304
3305static inline __le16 ext3_rec_len_to_disk(unsigned len)
3306{
3307 if (len == (1 << 16))
3308 return cpu_to_le16(EXT3_MAX_REC_LEN);
3309 else if (len > (1 << 16))
3310 BUG();
3311 return cpu_to_le16(len);
3312}
3313
3314/*
3315 * Compute the total directory entry data length.

Callers 4

add_dirent_to_bufFunction · 0.85
make_indexed_dirFunction · 0.85
ext3_add_entryFunction · 0.85
ext3_delete_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected