ctree.h (af142b6f44d36c4d0e1e53acbedbc30a588c58de) ctree.h (b538a271ae9bd07e926b1e3bbfcd1aebf63e5860)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#ifndef BTRFS_CTREE_H
7#define BTRFS_CTREE_H
8

--- 681 unchanged lines hidden (view full) ---

690
691/* super.c */
692int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
693 unsigned long new_flags);
694int btrfs_sync_fs(struct super_block *sb, int wait);
695char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info,
696 u64 subvol_objectid);
697
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#ifndef BTRFS_CTREE_H
7#define BTRFS_CTREE_H
8

--- 681 unchanged lines hidden (view full) ---

690
691/* super.c */
692int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
693 unsigned long new_flags);
694int btrfs_sync_fs(struct super_block *sb, int wait);
695char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info,
696 u64 subvol_objectid);
697
698#if BITS_PER_LONG == 32
699#define BTRFS_32BIT_MAX_FILE_SIZE (((u64)ULONG_MAX + 1) << PAGE_SHIFT)
700/*
698/*
701 * The warning threshold is 5/8th of the MAX_LFS_FILESIZE that limits the logical
702 * addresses of extents.
703 *
704 * For 4K page size it's about 10T, for 64K it's 160T.
705 */
706#define BTRFS_32BIT_EARLY_WARN_THRESHOLD (BTRFS_32BIT_MAX_FILE_SIZE * 5 / 8)
707void btrfs_warn_32bit_limit(struct btrfs_fs_info *fs_info);
708void btrfs_err_32bit_limit(struct btrfs_fs_info *fs_info);
709#endif
710
711/*
712 * Get the correct offset inside the page of extent buffer.
713 *
714 * @eb: target extent buffer
715 * @start: offset inside the extent buffer
716 *
717 * Will handle both sectorsize == PAGE_SIZE and sectorsize < PAGE_SIZE cases.
718 */
719static inline size_t get_eb_offset_in_page(const struct extent_buffer *eb,

--- 147 unchanged lines hidden ---
699 * Get the correct offset inside the page of extent buffer.
700 *
701 * @eb: target extent buffer
702 * @start: offset inside the extent buffer
703 *
704 * Will handle both sectorsize == PAGE_SIZE and sectorsize < PAGE_SIZE cases.
705 */
706static inline size_t get_eb_offset_in_page(const struct extent_buffer *eb,

--- 147 unchanged lines hidden ---