android_kernel_motorola_sm6225/fs/btrfs
Qu Wenruo c24ed5ea52 btrfs: tree-checker: Make chunk item checker messages more readable
commit f114024376bceb1c0f61a7bad4a72a0f978767af upstream.

Old error message would be something like:
  BTRFS error (device dm-3): invalid chunk num_stipres: 0

New error message would be:
  Btrfs critical (device dm-3): corrupt superblock syschunk array: chunk_start=2097152, invalid chunk num_stripes: 0
Or
  Btrfs critical (device dm-3): corrupt leaf: root=3 block=8388608 slot=3 chunk_start=2097152, invalid chunk num_stripes: 0

And for certain error message, also output expected value.

The error message levels are changed from error to critical.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
[bwh: Cherry-picked for 4.19 to ease backporting later fixes]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 12:35:56 +01:00
..
tests Btrfs: fix selftests failure due to uninitialized i_mode in test inodes 2020-08-05 10:06:00 +02:00
acl.c
async-thread.c Btrfs: fix crash during unmount due to race with delayed inode workers 2020-04-17 10:48:49 +02:00
async-thread.h Btrfs: fix crash during unmount due to race with delayed inode workers 2020-04-17 10:48:49 +02:00
backref.c btrfs: fix double free on ulist after backref resolution failure 2020-07-29 10:16:47 +02:00
backref.h
btrfs_inode.h
check-integrity.c
check-integrity.h
compression.c
compression.h
ctree.c btrfs: cleanup cow block on error 2020-11-05 11:08:48 +01:00
ctree.h btrfs: export helpers for subvolume name/id resolution 2020-08-26 10:30:58 +02:00
dedupe.h
delayed-inode.c btrfs: qgroup: fix wrong qgroup metadata reserve for delayed inode 2020-11-05 11:08:47 +01:00
delayed-inode.h
delayed-ref.c
delayed-ref.h
dev-replace.c btrfs: fix replace of seed device 2020-11-05 11:08:43 +01:00
dev-replace.h
dir-item.c
disk-io.c btrfs: fix space cache memory leak after transaction abort 2020-09-03 11:24:26 +02:00
disk-io.h
export.c btrfs: export helpers for subvolume name/id resolution 2020-08-26 10:30:58 +02:00
export.h btrfs: export helpers for subvolume name/id resolution 2020-08-26 10:30:58 +02:00
extent-tree.c btrfs: don't force read-only after error in drop snapshot 2020-10-01 13:14:46 +02:00
extent_io.c btrfs: Don't submit any btree write bio if the fs has errors 2020-11-10 12:35:55 +01:00
extent_io.h btrfs: fix potential deadlock in the search ioctl 2020-09-09 19:04:29 +02:00
extent_map.c
extent_map.h
file-item.c btrfs: do not ignore error from btrfs_next_leaf() when inserting checksums 2020-06-22 09:05:11 +02:00
file.c btrfs: file: reserve qgroup space after the hole punch range is locked 2020-09-03 11:24:22 +02:00
free-space-cache.c btrfs: fix space cache memory leak after transaction abort 2020-09-03 11:24:26 +02:00
free-space-cache.h
free-space-tree.c
free-space-tree.h
inode-item.c
inode-map.c
inode-map.h
inode.c btrfs: qgroup: fix data leak caused by race between writeback and truncate 2020-10-01 13:14:49 +02:00
ioctl.c btrfs: fix wrong address when faulting in pages in the search ioctl 2020-09-17 13:45:28 +02:00
Kconfig
locking.c
locking.h
lzo.c
Makefile
math.h
ordered-data.c
ordered-data.h
orphan.c
print-tree.c btrfs: require only sector size alignment for parent eb bytenr 2020-09-17 13:45:28 +02:00
print-tree.h
props.c
props.h
qgroup.c btrfs: qgroup: mark qgroup inconsistent if we're inherting snapshot to a new qgroup 2020-06-22 09:05:19 +02:00
qgroup.h
raid56.c
raid56.h
rcu-string.h
reada.c btrfs: fix use-after-free on readahead extent after failure to create it 2020-11-05 11:08:48 +01:00
ref-verify.c btrfs: ref-verify: fix memory leak in add_block_entry 2020-08-21 11:05:30 +02:00
ref-verify.h
relocation.c btrfs: check commit root generation in should_ignore_root 2020-04-21 09:03:09 +02:00
root-tree.c
scrub.c btrfs: merge btrfs_find_device and find_device 2020-06-22 09:04:59 +02:00
send.c btrfs: use kvzalloc() to allocate clone_roots in btrfs_ioctl_send() 2020-11-05 11:08:48 +01:00
send.h
struct-funcs.c
super.c btrfs: reset compression level for lzo on remount 2020-09-03 11:24:26 +02:00
sysfs.c btrfs: sysfs: use NOFS for device creation 2020-08-26 10:30:59 +02:00
sysfs.h
transaction.c btrfs: transaction: Avoid deadlock due to bad initialization timing of fs_info::journal_info 2020-05-06 08:13:33 +02:00
transaction.h
tree-checker.c btrfs: tree-checker: Make chunk item checker messages more readable 2020-11-10 12:35:56 +01:00
tree-checker.h btrfs: Move btrfs_check_chunk_valid() to tree-check.[ch] and export it 2020-11-10 12:35:56 +01:00
tree-defrag.c
tree-log.c btrfs: reschedule if necessary when logging directory items 2020-11-05 11:08:48 +01:00
tree-log.h
ulist.c
ulist.h
uuid-tree.c
volumes.c btrfs: Move btrfs_check_chunk_valid() to tree-check.[ch] and export it 2020-11-10 12:35:56 +01:00
volumes.h btrfs: merge btrfs_find_device and find_device 2020-06-22 09:04:59 +02:00
xattr.c
xattr.h
zlib.c
zstd.c