exynos-linux-stable/fs/btrfs
Nick Terrell c2a42cf6f2
lib: zstd: Add kernel-specific API
This patch:
- Moves `include/linux/zstd.h` -> `include/linux/zstd_lib.h`
- Updates modified zstd headers to yearless copyright
- Adds a new API in `include/linux/zstd.h` that is functionally
  equivalent to the in-use subset of the current API. Functions are
  renamed to avoid symbol collisions with zstd, to make it clear it is
  not the upstream zstd API, and to follow the kernel style guide.
- Updates all callers to use the new API.

There are no functional changes in this patch. Since there are no
functional change, I felt it was okay to update all the callers in a
single patch. Once the API is approved, the callers are mechanically
changed.

This patch is preparing for the 3rd patch in this series, which updates
zstd to version 1.4.10. Since the upstream zstd API is no longer exposed
to callers, the update can happen transparently.

Signed-off-by: Nick Terrell <terrelln@fb.com>
Tested By: Paul Jones <paul@pauljones.id.au>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM/Clang v13.0.0 on x86-64
Tested-by: Jean-Denis Girard <jd.girard@sysnux.pf>
2023-02-21 00:21:04 +03:00
..
tests Btrfs: fix race between adding and putting tree mod seq elements and nodes 2020-02-14 16:31:07 -05:00
acl.c btrfs: preserve i_mode if __btrfs_set_acl() fails 2018-03-11 16:21:35 +01:00
async-thread.c btrfs: don't prematurely free work in run_ordered_work() 2020-01-04 13:40:02 +01:00
async-thread.h btrfs: limit async_work allocation and worker func duration 2017-01-06 10:40:10 +01:00
backref.c Btrfs: do not start a transaction at iterate_extent_inodes() 2019-05-21 18:48:59 +02:00
backref.h btrfs: cleanup, remove inode_item_info helper 2015-01-14 19:23:47 +01:00
btrfs_inode.h Btrfs: add a flags field to btrfs_fs_info 2016-09-26 17:59:49 +02:00
check-integrity.c btrfs: convert printk(KERN_* to use pr_* calls 2016-09-26 18:08:44 +02:00
check-integrity.h fs: have submit_bh users pass in op and flags separately 2016-06-07 13:41:38 -06:00
compression.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
compression.h import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
ctree.c treewide: use kv[mz]alloc* rather than opencoded variants 2023-02-21 00:20:54 +03:00
ctree.h Merge 4.9.216 branch 'android-4.9-q' into tw10-android-4.9-q 2020-03-15 18:00:10 +02:00
dedupe.h btrfs: expand cow_file_range() to support in-band dedup and subpage-blocksize 2016-07-26 13:52:25 +02:00
delayed-inode.c btrfs: limit async_work allocation and worker func duration 2017-01-06 10:40:10 +01:00
delayed-inode.h Btrfs: fix ->iterate_shared() by upgrading i_rwsem for delayed nodes 2016-06-25 06:20:10 -07:00
delayed-ref.c Btrfs: fix race between adding and putting tree mod seq elements and nodes 2020-02-14 16:31:07 -05:00
delayed-ref.h Btrfs: remove unused function btrfs_add_delayed_qgroup_reserve() 2016-08-03 11:02:51 +01:00
dev-replace.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
dev-replace.h btrfs: refactor btrfs_dev_replace_start for reuse 2016-04-28 10:59:13 +02:00
dir-item.c btrfs: unsplit printed strings 2016-09-26 18:08:44 +02:00
disk-io.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
disk-io.h Btrfs: fix memory leak of block group cache 2016-09-26 17:59:49 +02:00
export.c BTRFS: support NFSv2 export 2015-10-06 06:55:23 -07:00
export.h NFS support for btrfs - v3 2008-09-25 11:04:06 -04:00
extent-tree.c btrfs: block-group: Fix a memory leak due to missing btrfs_put_block_group() 2019-10-29 09:15:25 +01:00
extent_io.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
extent_io.h btrfs: struct-funcs, constify readers 2018-12-08 13:05:12 +01:00
extent_map.c Btrfs: fix race between using extent maps and merging them 2020-02-28 15:42:12 +01:00
extent_map.h btrfs: cleanup, stop casting for extent_map->lookup everywhere 2016-01-15 19:22:28 +01:00
file-item.c Btrfs: fix __MAX_CSUM_ITEMS 2016-08-03 14:08:37 -07:00
file.c Btrfs: fix negative subv_writers counter and data space leak after buffered write 2019-12-21 10:42:12 +01:00
free-space-cache.c btrfs: check page->mapping when loading free space cache 2019-12-21 10:41:57 +01:00
free-space-cache.h btrfs: convert pr_* to btrfs_* where possible 2016-09-26 19:37:04 +02:00
free-space-tree.c Merge branch 'fst-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux into for-linus-4.9 2016-10-12 13:16:00 -07:00
free-space-tree.h Btrfs: implement the free space B-tree 2015-12-17 12:16:47 -08:00
hash.c crypto: Work around deallocated stack frame reference gcc bug on sparc. 2017-06-24 07:11:17 +02:00
hash.h btrfs: advertise which crc32c implementation is being used at module load 2016-06-06 14:08:28 +02:00
inode-item.c btrfs: rename btrfs_std_error to btrfs_handle_fs_error 2016-04-28 10:36:54 +02:00
inode-map.c Btrfs: fix hang when loading existing inode cache off disk 2020-01-29 10:24:31 +01:00
inode-map.h Btrfs: Initialize btrfs_root->highest_objectid when loading tree root and subvolume roots 2016-01-15 19:25:02 +01:00
inode.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
ioctl.c treewide: use kv[mz]alloc* rather than opencoded variants 2023-02-21 00:20:54 +03:00
Kconfig import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
locking.c btrfs: cleanup, remove stray return statements 2016-01-07 14:30:52 +01:00
locking.h btrfs: fix lockups from btrfs_clear_path_blocking 2014-11-19 10:34:35 -08:00
lzo.c btrfs: convert printk(KERN_* to use pr_* calls 2016-09-26 18:08:44 +02:00
Makefile Merge 4.9.212 branch 'android-4.9-q' into tw10-android-4.9-q 2020-02-12 12:32:38 +02:00
math.h btrfs: cleanup 64bit/32bit divs, compile time constants 2015-03-03 17:23:57 +01:00
ordered-data.c Btrfs: fix btrfs_wait_ordered_range() so that it waits for all ordered extents 2020-02-28 15:42:53 +01:00
ordered-data.h Btrfs: fix race setting block group readonly during device replace 2016-05-30 12:58:21 +01:00
orphan.c btrfs: kill the key type accessor helpers 2014-09-17 13:37:12 -07:00
print-tree.c btrfs: convert printk(KERN_* to use pr_* calls 2016-09-26 18:08:44 +02:00
print-tree.h btrfs: make static code static & remove dead code 2013-05-06 15:55:23 -04:00
props.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
props.h Btrfs: add support for inode properties 2014-01-28 13:20:24 -08:00
qgroup.c Btrfs: fix race setting up and completing qgroup rescan workers 2019-10-05 12:30:37 +02:00
qgroup.h btrfs: qgroup: Refactor btrfs_qgroup_insert_dirty_extent() 2016-08-25 03:58:21 -07:00
raid56.c btrfs: raid56: properly unmap parity page in finish_parity_scrub() 2019-04-03 06:24:16 +02:00
raid56.h Btrfs: add RAID 5/6 BTRFS_RBIO_REBUILD_MISSING operation 2015-08-09 07:34:26 -07:00
rcu-string.h Btrfs: use rcu to protect device->name 2012-06-14 21:29:16 -04:00
reada.c btrfs: don't prematurely free work in reada_start_machine_worker() 2020-01-04 13:40:09 +01:00
relocation.c btrfs: do not leak reloc root if we fail to read the fs root 2020-01-04 13:38:56 +01:00
root-tree.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
scrub.c btrfs: scrub: Don't use inode pages for device replace 2018-06-26 08:08:07 +08:00
send.c treewide: use kv[mz]alloc* rather than opencoded variants 2023-02-21 00:20:54 +03:00
send.h Btrfs: use linux/sizes.h to represent constants 2016-01-07 14:38:02 +01:00
struct-funcs.c btrfs: struct-funcs, constify readers 2018-12-08 13:05:12 +01:00
super.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
sysfs.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
sysfs.h btrfs: sysfs: introduce helper for syncing bits with sysfs files 2016-01-21 18:50:40 +01:00
transaction.c btrfs: set trans->drity in btrfs_commit_transaction 2020-02-14 16:31:02 -05:00
transaction.h btrfs: convert pr_* to btrfs_* where possible 2016-09-26 19:37:04 +02:00
tree-checker.c btrfs: tree-checker: Fix misleading group system information 2018-12-08 13:05:13 +01:00
tree-checker.h btrfs: tree-checker: Fix false panic for sanity test 2018-12-08 13:05:12 +01:00
tree-defrag.c Btrfs: fix locking bugs when defragging leaves 2015-12-18 02:51:32 +00:00
tree-log.c Btrfs: fix assertion failure on fsync with NO_HOLES enabled 2020-02-14 16:31:07 -05:00
tree-log.h Btrfs: fix lockdep warning on deadlock against an inode's log mutex 2016-08-25 03:58:32 -07:00
ulist.c btrfs: fix string and comment grammatical issues and typos 2016-05-25 22:35:14 +02:00
ulist.h btrfs: ulist: Add ulist_del() function. 2015-06-10 09:26:17 -07:00
uuid-tree.c btrfs: handle ENOENT in btrfs_uuid_tree_iterate 2020-01-04 13:38:57 +01:00
volumes.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
volumes.h btrfs: Remove btrfs_bio::flags member 2019-12-21 10:41:57 +01:00
xattr.c fs: Replace current_fs_time() with current_time() 2016-09-27 21:06:22 -04:00
xattr.h btrfs: Switch to generic xattr handlers 2016-05-17 19:17:09 -04:00
zlib.c btrfs: convert printk(KERN_* to use pr_* calls 2016-09-26 18:08:44 +02:00
zstd.c lib: zstd: Add kernel-specific API 2023-02-21 00:21:04 +03:00