Lines Matching +full:off +full:- +full:by
1 /* SPDX-License-Identifier: GPL-2.0 */
33 /* B-tree mutex nested subclasses */
138 /* mutable data from the volume header, protected by alloc_mutex */
142 /* mutable data from the volume header, protected by vh_mutex */
159 int work_queued; /* non-zero delayed work is queued */
176 return sb->s_fs_info; in HFSPLUS_SB()
184 * Extent allocation information, protected by extents_lock.
203 * Protected by sbi->vh_mutex.
213 * Protected by i_mutex.
235 test_bit(HFSPLUS_I_RSRC, &HFSPLUS_I(inode)->flags)
245 * For data or metadata that gets written back by into the catalog btree
246 * by hfsplus_write_inode a plain mark_inode_dirty call is enough.
251 set_bit(flag, &HFSPLUS_I(inode)->flags); in hfsplus_mark_inode_dirty()
256 /* filled by caller */
259 /* filled by find */
262 /* filled by findrec */
279 return max_t(unsigned short, HFSPLUS_SB(sb)->min_io_size, in hfsplus_min_io_size()
320 * hfs+-specific ioctl for making the filesystem bootable
365 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len);
366 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off);
367 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off);
368 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off);
369 void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len);
370 void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data);
371 void hfs_bnode_clear(struct hfs_bnode *node, int off, int len);
387 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off);
509 * time helpers: convert between 1904-base and 1970-base timestamps
512 * traditional behavior of 64-bit Linux, giving the most useful
513 * time range between 1970 and 2106, by treating any on-disk timestamp
520 time64_t ut = (u32)(be32_to_cpu(mt) - HFSPLUS_UTC_OFFSET); in __hfsp_mt2ut()
535 switch (tree->cnid) { in hfsplus_btree_lock_class()
552 bool is_bnode_offset_valid(struct hfs_bnode *node, int off) in is_bnode_offset_valid() argument
554 bool is_valid = off < node->tree->node_size; in is_bnode_offset_valid()
560 node->this, node->type, node->height, in is_bnode_offset_valid()
561 node->tree->node_size, off); in is_bnode_offset_valid()
568 int check_and_correct_requested_length(struct hfs_bnode *node, int off, int len) in check_and_correct_requested_length() argument
572 if (!is_bnode_offset_valid(node, off)) in check_and_correct_requested_length()
575 node_size = node->tree->node_size; in check_and_correct_requested_length()
577 if ((off + len) > node_size) { in check_and_correct_requested_length()
578 int new_len = (int)node_size - off; in check_and_correct_requested_length()
584 node->this, node->type, node->height, in check_and_correct_requested_length()
585 node->tree->node_size, off, len, new_len); in check_and_correct_requested_length()