| 820 | } |
| 821 | |
| 822 | static 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 |
no test coverage detected