Home
last modified time | relevance | path

Searched refs:bytes_needed (Results 1 – 2 of 2) sorted by relevance

/fs/ocfs2/
Dslot_map.c214 unsigned long long bytes_needed; in ocfs2_slot_map_physical_size() local
217 bytes_needed = osb->max_slots * in ocfs2_slot_map_physical_size()
220 bytes_needed = osb->max_slots * sizeof(__le16); in ocfs2_slot_map_physical_size()
222 if (bytes_needed > i_size_read(inode)) { in ocfs2_slot_map_physical_size()
225 i_size_read(inode), bytes_needed); in ocfs2_slot_map_physical_size()
229 *bytes = bytes_needed; in ocfs2_slot_map_physical_size()
/fs/btrfs/
Dspace-info.c582 u64 bytes_needed = 0; in may_commit_transaction() local
603 bytes_needed = ticket->bytes; in may_commit_transaction()
605 if (bytes_needed > cur_free_bytes) in may_commit_transaction()
606 bytes_needed -= cur_free_bytes; in may_commit_transaction()
608 bytes_needed = 0; in may_commit_transaction()
611 if (!bytes_needed) in may_commit_transaction()
625 bytes_needed, in may_commit_transaction()
650 if (reclaim_bytes >= bytes_needed) in may_commit_transaction()
652 bytes_needed -= reclaim_bytes; in may_commit_transaction()
655 bytes_needed, in may_commit_transaction()