• Theodore Ts'o's avatar
    libext2fs: factor out I/O buffer allocation · fd1c5a06
    Theodore Ts'o authored
    
    
    Create a new function, io_channel_alloc_buf() which allocates I/O
    buffers with appropriate alignment if we are using direct I/O.  The
    original code was sometimes using a larger alignment factor than
    necessary, and would always request an aligned memory buffer even when
    it was not necessary since the block device was not opened with
    O_DIRECT.
    Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
    fd1c5a06
ext2_io.h 4.6 KB