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

Function dx_node_limit

Ext4Fsd/ext3/htree.c:822–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820}
821
822static inline unsigned dx_node_limit (struct inode *dir)
823{
824 unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(0);
825
826 if (ext4_has_metadata_csum(dir->i_sb))
827 entry_space -= sizeof(struct dx_tail);
828 return entry_space / sizeof(struct dx_entry);
829}
830
831/*
832 * Debug

Callers 2

dx_probeFunction · 0.85
ext3_dx_add_entryFunction · 0.85

Calls 1

ext4_has_metadata_csumFunction · 0.85

Tested by

no test coverage detected