[lkml]   [2000]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC] Generic deferred file writing

    On Sat, 30 Dec 2000, Alexander Viro wrote:
    > Except that we've got file-expanding writes outside of ->i_sem. Thanks, but
    > no thanks.

    No, Al, the file size is still updated inside i_sem.

    Yes, it will do actual block allocation outside i_sem, but that is already
    true of any mmap'ed writes, and has been true for a long long time. So if
    we have a bug here (and I don't think we have one), it's not something
    new. But the inode semaphore doesn't protect the balloc() data structures
    anyway, as they are filesystem-global.

    If you're nervous about the effects of "truncate()", then that should be
    handled properly by truncate_inode_pages().

    In short, I don't see _those_ kinds of issues. I do see error reporting as
    a major issue, though. If we need to do proper low-level block allocation
    in order to get correct ENOSPC handling, then the win from doing deferred
    writes is not very big.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:52    [W:0.020 / U:5.244 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site