summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2019-11-09 01:42:59 -0500
committerTheodore Ts'o <tytso@mit.edu>2019-11-09 01:55:14 -0500
commitabbe0f9d70d2f6286e83b2168cd4f434c757a8a1 (patch)
treef87eeed7f8440349ea4767cd58f20dc249e3016b /contrib
parent650ee9f8aab53b6d23db4435e5df47a53db44227 (diff)
downloade2fsprogs-abbe0f9d70d2f6286e83b2168cd4f434c757a8a1.tar.gz
e2fsck/recovery.c: sync up with kernel's use of __be32
E2fsprogs as a whole is not sparse-clean, but it does have and understand the __beXX and __leXX types from the kernel. The structure definitions in kernel-jbd.h have been updated to use the __beXX types, so that recovery.c and revoke.c are more sparse-clean. This removes a few more unneeded deltas from the kernel's recovery.c. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/jbd2-resync.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/jbd2-resync.sh b/contrib/jbd2-resync.sh
index 600df8d7..9b3a52eb 100755
--- a/contrib/jbd2-resync.sh
+++ b/contrib/jbd2-resync.sh
@@ -9,8 +9,7 @@ fi
# Use the ext2fs_ endian conversion functions because they truncate oversized
# inputs (e.g. passing a u32 to cpu_to_be16()) like the kernel versions and
# unlike the libc6 versions.
-exec sed -e 's/__be/__u/g' \
- -e 's/struct kmem_cache/lkmem_cache_t/g' \
+exec sed -e 's/struct kmem_cache/lkmem_cache_t/g' \
-e 's/cpu_to_be/ext2fs_cpu_to_be/g' \
-e 's/be\([0-9][0-9]\)_to_cpu/ext2fs_be\1_to_cpu/g' \
< "$1" > "$2"