在文件系统中,当需要执行写操作时,肯定是需要查找需要写入的块.那么如何查找块哪? 在Ext4系统中,有两个函数是可能执行查找操作的:ext4_getblk().ext4_get_block(). 其中ext4_getblk(),原型如下: structbuffer_head *ext4_getblk(handle_t *handle, struct inode *inode, ext4_lblk_tblock, int create, int *errp) 该函数的主要功能:基于给定的in…