exynos-linux-stable/fs/ext4
David Howells 6807a22f42
VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb)
Firstly by applying the following with coccinelle's spatch:

	@@ expression SB; @@
	-SB->s_flags & MS_RDONLY
	+sb_rdonly(SB)

to effect the conversion to sb_rdonly(sb), then by applying:

	@@ expression A, SB; @@
	(
	-(!sb_rdonly(SB)) && A
	+!sb_rdonly(SB) && A
	|
	-A != (sb_rdonly(SB))
	+A != sb_rdonly(SB)
	|
	-A == (sb_rdonly(SB))
	+A == sb_rdonly(SB)
	|
	-!(sb_rdonly(SB))
	+!sb_rdonly(SB)
	|
	-A && (sb_rdonly(SB))
	+A && sb_rdonly(SB)
	|
	-A || (sb_rdonly(SB))
	+A || sb_rdonly(SB)
	|
	-(sb_rdonly(SB)) != A
	+sb_rdonly(SB) != A
	|
	-(sb_rdonly(SB)) == A
	+sb_rdonly(SB) == A
	|
	-(sb_rdonly(SB)) && A
	+sb_rdonly(SB) && A
	|
	-(sb_rdonly(SB)) || A
	+sb_rdonly(SB) || A
	)

	@@ expression A, B, SB; @@
	(
	-(sb_rdonly(SB)) ? 1 : 0
	+sb_rdonly(SB)
	|
	-(sb_rdonly(SB)) ? A : B
	+sb_rdonly(SB) ? A : B
	)

to remove left over excess bracketage and finally by applying:

	@@ expression A, SB; @@
	(
	-(A & MS_RDONLY) != sb_rdonly(SB)
	+(bool)(A & MS_RDONLY) != sb_rdonly(SB)
	|
	-(A & MS_RDONLY) == sb_rdonly(SB)
	+(bool)(A & MS_RDONLY) == sb_rdonly(SB)
	)

to make comparisons against the result of sb_rdonly() (which is a bool)
work correctly.

Signed-off-by: David Howells <dhowells@redhat.com>
2023-02-21 00:20:52 +03:00
..
acl.c ext4: Don't clear SGID when inheriting ACLs 2017-10-12 11:51:26 +02:00
acl.h ext2/3/4: use generic posix ACL infrastructure 2014-01-25 23:58:19 -05:00
balloc.c Import G96XFXXUCFTJ2 OSRC 2023-02-21 00:10:26 +03:00
bitmap.c ext4: remove unused header files 2015-04-02 23:47:42 -04:00
block_validity.c ext4: add missing KERN_CONT to a few more debugging uses 2016-10-15 09:57:31 -04:00
dir.c Merge 4.9.216 branch 'android-4.9-q' into tw10-android-4.9-q 2020-03-15 18:00:10 +02:00
ext4.h ext4: Add statx support 2023-02-21 00:20:49 +03:00
ext4_dlp.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
ext4_dlp.h import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
ext4_extents.h ext4: verify the depth of extent tree in ext4_find_extent() 2018-07-11 16:26:44 +02:00
ext4_jbd2.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
ext4_jbd2.h ext4: fix NULL pointer dereference while journal is aborted 2019-03-27 14:13:03 +09:00
extents.c Merge 4.9.212 branch 'android-4.9-q' into tw10-android-4.9-q 2020-02-12 12:32:38 +02:00
extents_status.c ext4: remove trailing \n from ext4_warning/ext4_error calls 2016-04-27 01:11:21 -04:00
extents_status.h ext4: move procfs registration code to fs/ext4/sysfs.c 2015-09-23 12:46:17 -04:00
file.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
fsync.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
hash.c ext4: remove unused header files 2015-04-02 23:47:42 -04:00
ialloc.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
indirect.c ext4: cleanup bh release code in ext4_ind_remove_space() 2019-04-05 22:29:04 +02:00
inline.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
inode.c statx: Include a mask for stx_attributes in struct statx 2023-02-21 00:20:50 +03:00
ioctl.c Merge 4.9.212 branch 'android-4.9-q' into tw10-android-4.9-q 2020-02-12 12:32:38 +02:00
Kconfig import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
Makefile import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
mballoc.c BACKPORT: mm: introduce kv[mz]alloc helpers 2023-02-21 00:19:39 +03:00
mballoc.h import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
migrate.c ext4: fix race between writepages and enabling EXT4_EXTENTS_FL 2020-02-28 15:42:52 +01:00
mmp.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
move_extent.c ext4: fix argument checking in EXT4_IOC_MOVE_EXT 2018-11-13 11:16:52 -08:00
namei.c ext4: Add statx support 2023-02-21 00:20:49 +03:00
page-io.c Merge 4.9.216 branch 'android-4.9-q' into tw10-android-4.9-q 2020-03-15 18:00:10 +02:00
readpage.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
resize.c ext4: fix potential race between s_flex_groups online resizing and access 2020-03-11 07:53:01 +01:00
super.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
symlink.c ext4: Add statx support 2023-02-21 00:20:49 +03:00
sysfs.c Merge 4.9.212 branch 'android-4.9-q' into tw10-android-4.9-q 2020-02-12 12:32:38 +02:00
truncate.h ext4: fix races between page faults and hole punching 2015-12-07 14:28:03 -05:00
xattr.c Merge 4.9.212 branch 'android-4.9-q' into tw10-android-4.9-q 2020-02-12 12:32:38 +02:00
xattr.h import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
xattr_security.c switch xattr_handler->set() to passing dentry and inode separately 2016-05-27 15:39:43 -04:00
xattr_trusted.c switch xattr_handler->set() to passing dentry and inode separately 2016-05-27 15:39:43 -04:00
xattr_user.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00