Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:fs

26 errcode_t ext2fs_read_ext_attr(ext2_filsys fs, blk_t block, void *buf)
30 retval = io_channel_read_blk(fs->io, block, 1, buf);
34 if ((fs->flags & (EXT2_FLAG_SWAP_BYTES|
36 ext2fs_swap_ext_attr(buf, buf, fs->blocksize, 1);
41 errcode_t ext2fs_write_ext_attr(ext2_filsys fs, blk_t block, void *inbuf)
48 if ((fs->flags & EXT2_FLAG_SWAP_BYTES) ||
49 (fs->flags & EXT2_FLAG_SWAP_BYTES_WRITE)) {
50 retval = ext2fs_get_mem(fs->blocksize, &buf);
54 ext2fs_swap_ext_attr(buf, inbuf, fs->blocksize, 1);
58 retval = io_channel_write_blk(fs->io, block, 1, write_buf);
62 ext2fs_mark_changed(fs);
69 errcode_t ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk,
77 if ((blk >= fs->super->s_blocks_count) ||
78 (blk < fs->super->s_first_data_block))
82 retval = ext2fs_get_mem(fs->blocksize, &buf);
88 retval = ext2fs_read_ext_attr(fs, blk, block_buf);
97 retval = ext2fs_write_ext_attr(fs, blk, block_buf);