[PATCH 14/19] btrfs: Switch to new check_data_free_space

2015-09-08 Thread Qu Wenruo
Use new check_data_free_space for buffered write and inode cache. For buffered write case, as nodatacow write won't increase quota account, so unlike old behavior which does reserve before check nocow, now we check nocow first and then only reserve data if we can't do nocow write. Signed-off-by:

[PATCH 14/19] btrfs: Switch to new check_data_free_space

2015-09-08 Thread Qu Wenruo
Use new check_data_free_space for buffered write and inode cache. For buffered write case, as nodatacow write won't increase quota account, so unlike old behavior which does reserve before check nocow, now we check nocow first and then only reserve data if we can't do nocow write. Signed-off-by: