Lines Matching refs:sectors
145 struct quota_res *quota_res, s64 sectors) in __bch2_i_sectors_acct() argument
147 bch2_fs_inconsistent_on((s64) inode->v.i_blocks + sectors < 0, c, in __bch2_i_sectors_acct()
149 inode->v.i_ino, (u64) inode->v.i_blocks, sectors, in __bch2_i_sectors_acct()
151 inode->v.i_blocks += sectors; in __bch2_i_sectors_acct()
156 sectors > 0) { in __bch2_i_sectors_acct()
157 BUG_ON(sectors > quota_res->sectors); in __bch2_i_sectors_acct()
158 BUG_ON(sectors > inode->ei_quota_reserved); in __bch2_i_sectors_acct()
160 quota_res->sectors -= sectors; in __bch2_i_sectors_acct()
161 inode->ei_quota_reserved -= sectors; in __bch2_i_sectors_acct()
163 bch2_quota_acct(c, inode->ei_qid, Q_SPC, sectors, KEY_TYPE_QUOTA_WARN); in __bch2_i_sectors_acct()
594 unsigned sectors; in __bchfs_fallocate() local
658 sectors = hole_end - hole_start; in __bchfs_fallocate()
662 "a_res, sectors, true); in __bchfs_fallocate()
668 sectors, opts, &i_sectors_delta, in __bchfs_fallocate()
806 u64 sectors = end - start; in quota_reserve_range() local
817 BUG_ON(s > sectors); in quota_reserve_range()
818 sectors -= s; in quota_reserve_range()
824 return ret ?: bch2_quota_reservation_add(c, inode, res, sectors, true); in quota_reserve_range()