• Mingming Cao's avatar
    quota: Add quota reservation support · f18df228
    Mingming Cao authored
    Delayed allocation defers the block allocation at the dirty pages
    flush-out time, doing quota charge/check at that time is too late.
    But we can't charge the quota blocks until blocks are really allocated,
    otherwise users could get overcharged after reboot from system crash.
    
    This patch adds quota reservation for delayed allocation. Quota blocks
    are reserved in memory, inode and quota won't gets dirtied until later
    block allocation time.
    Signed-off-by: default avatarMingming Cao <cmm@us.ibm.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    f18df228
dquot.c 68.4 KB