Home
last modified time | relevance | path

Searched refs:BFS_BSIZE (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/include/uapi/linux/
H A Dbfs_fs.h13 #define BFS_BSIZE (1<<BFS_BSIZE_BITS) macro
66 ((((offset) - BFS_BSIZE) / sizeof(struct bfs_inode)) + BFS_ROOT_INO)
69 ((__u32)(((ino) - BFS_ROOT_INO) * sizeof(struct bfs_inode)) + BFS_BSIZE)
71 ((le32_to_cpu((ip)->i_eoffset) + 1) - le32_to_cpu((ip)->i_sblock) * BFS_BSIZE)
/openbmc/linux/fs/bfs/
H A Ddir.c45 offset = ctx->pos & (BFS_BSIZE - 1); in bfs_readdir()
49 ctx->pos += BFS_BSIZE - offset; in bfs_readdir()
65 } while ((offset < BFS_BSIZE) && (ctx->pos < dir->i_size)); in bfs_readdir()
289 for (off = 0; off < BFS_BSIZE; off += BFS_DIRENT_SIZE) { in bfs_add_entry()
292 pos = (block - sblock) * BFS_BSIZE + off; in bfs_add_entry()
335 while (block * BFS_BSIZE + offset < dir->i_size) { in bfs_find_entry()
H A Dinode.c149 di->i_eoffset = cpu_to_le32(i_sblock * BFS_BSIZE + inode->i_size - 1); in bfs_write_inode()
328 sb_set_blocksize(s, BFS_BSIZE); in bfs_fill_super()
350 …info->si_lasti = (le32_to_cpu(bfs_sb->s_start) - BFS_BSIZE) / sizeof(struct bfs_inode) + BFS_ROOT_… in bfs_fill_super()
414 i_sblock * BFS_BSIZE > i_eoff) { in bfs_fill_super()