[write-beind] why we don't cache if length of data can not be divided by 4096.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

a code in write-behind.c, function wb_writev:
// begin
  if ((file->size >= conf->aggregate_size) ||
      (iov_length (vector, count) % 4096)) {
    wb_sync (wb_frame, file);
  }
// end

Why we don't cache(or aggregate) data, if the length of the data can
not be divided by 4096?

Any reason for this decision?

Thanks,
LI Daobing




[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux