• Mike Marshall's avatar
    orangefs: copy Orangefs-sized blocks into the pagecache if possible. · dd59a647
    Mike Marshall authored
    ->readpage looks in file->private_data to try and find out how the
    userspace program set "count" in read(2) or with "dd bs=" or whatever.
    
    ->readpage uses "count" and inode->i_size to calculate how much
    data Orangefs should deposit in the Orangefs shared buffer, and
    remembers which slot the data is in.
    
    After copying data from the Orangefs shared buffer slot into
    "the page", readpage tries to increment through the pagecache index
    and fill as many pages as it can from the extra data in the shared
    buffer. Hopefully these extra pages will soon be needed by the vfs,
    and they'll be in the pagecache already.
    Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
    Signed-off-by: default avatarMartin Brandenburg <martin@omnibond.com>
    dd59a647
orangefs-debugfs.c 25.3 KB