• M
    quota: Add quota reservation support · f18df228
    Mingming Cao 提交于
    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: NMingming Cao <cmm@us.ibm.com>
    Signed-off-by: NJan Kara <jack@suse.cz>
    f18df228
quotaops.h 11.8 KB