Re: [PATCH 2/3] ext3 reservation allow turn off for specifed file

Andrew Morton
2004-10-18T23:38:26Z

Mingming Cao <cmm@us.ibm.com> wrote:
>
> Allow user shut down reservation-based allocation(using ioctl) on a specific file(e.g. for seeky random write).

Applications currently pass a seeky-access hint into the kernel via
posix_fadvise(POSIX_FADV_RANDOM). It would be nice to hook into that
rather than adding an ext3-specific ioctl. Maybe just peeking at
file->f_ra.ra_pages would suffice.