• Liu Bo's avatar
    Btrfs: fix comment in btrfs_page_mkwrite · 5416034f
    Liu Bo authored
    The comment about "page_mkwrite gets called every time the page is
    dirtied" in btrfs_page_mkwrite is not correct, it only gets called the
    first time the page gets dirtied after the page faults in.
    
    However, we don't need to touch the code because it works well, although
    the proper logic is to check if delalloc bits has been set and if so, go
    free reserved space, if not, set the delalloc bits for dirty page range.
    Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    5416034f
inode.c 284 KB