kernel_optimize_test/fs/ext4
Arnd Bergmann a4d2aadca1 ext4: sysfs: print ext4_super_block fields as little-endian
While working on extended rand for last_error/first_error timestamps,
I noticed that the endianess is wrong; we access the little-endian
fields in struct ext4_super_block as native-endian when we print them.

This adds a special case in ext4_attr_show() and ext4_attr_store()
to byteswap the superblock fields if needed.

In older kernels, this code was part of super.c, it got moved to
sysfs.c in linux-4.4.

Cc: stable@vger.kernel.org
Fixes: 52c198c682 ("ext4: add sysfs entry showing whether the fs contains errors")
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2018-07-29 15:48:00 -04:00
..
acl.c
acl.h
balloc.c ext4: check for allocation block validity with block group locked 2018-07-12 19:08:05 -04:00
bitmap.c
block_validity.c
dir.c
ext4_extents.h ext4: verify the depth of extent tree in ext4_find_extent() 2018-06-14 12:55:10 -04:00
ext4_jbd2.c
ext4_jbd2.h
ext4.h Bug fixes for ext4; most of which relate to vulnerabilities where a 2018-07-08 11:10:30 -07:00
extents_status.c
extents_status.h
extents.c Bug fixes for ext4; most of which relate to vulnerabilities where a 2018-07-08 11:10:30 -07:00
file.c
fsmap.c
fsmap.h
fsync.c
hash.c
ialloc.c ext4: fix check to prevent initializing reserved inodes 2018-07-29 15:34:00 -04:00
indirect.c
inline.c ext4: fix inline data updates with checksums enabled 2018-07-10 01:07:43 -04:00
inode.c ext4: fix inline data updates with checksums enabled 2018-07-10 01:07:43 -04:00
ioctl.c
Kconfig
Makefile
mballoc.c Bug fixes for ext4; most of which relate to vulnerabilities where a 2018-07-08 11:10:30 -07:00
mballoc.h
migrate.c
mmp.c ext4: clear mmp sequence number when remounting read-only 2018-07-08 19:36:02 -04:00
move_extent.c
namei.c Merge branch 'vfs_timespec64' of https://github.com/deepa-hub/vfs into vfs-timespec64 2018-06-14 14:54:00 +02:00
page-io.c
readpage.c
resize.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
super.c ext4: fix check to prevent initializing reserved inodes 2018-07-29 15:34:00 -04:00
symlink.c
sysfs.c ext4: sysfs: print ext4_super_block fields as little-endian 2018-07-29 15:48:00 -04:00
truncate.h
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c ext4: avoid running out of journal credits when appending to an inline file 2018-06-16 23:41:59 -04:00
xattr.h