exynos-linux-stable/fs/ecryptfs
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
..
crypto.c Merge 4.9.216 branch 'android-4.9-q' into tw10-android-4.9-q 2020-03-15 18:00:10 +02:00
debug.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
dentry.c eCryptfs: Invalidate dcache entries when lower i_nlink is zero 2015-08-18 17:29:48 -05:00
ecryptfs_dek.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
ecryptfs_dek.h import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
ecryptfs_dlp.h import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
ecryptfs_kernel.h import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
ecryptfs_sdp_chamber.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
ecryptfs_sdp_chamber.h import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
file.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
inode.c statx: Add a system call to make enhanced file info available 2023-02-21 00:20:48 +03:00
Kconfig import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
keystore.c Merge 4.9.216 branch 'android-4.9-q' into tw10-android-4.9-q 2020-03-15 18:00:10 +02:00
kthread.c Revert "ecryptfs: forbid opening files without mmap handler" 2016-07-07 18:47:57 -05:00
main.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2023-02-21 00:20:52 +03:00
Makefile import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
messaging.c ecryptfs: fix a memory leak bug in ecryptfs_init_messaging() 2020-02-28 15:42:11 +01:00
miscdev.c ecryptfs: close rmmod race 2013-04-09 14:08:16 -04:00
mm.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
mm.h import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
mmap.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
read_write.c mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros 2016-04-04 10:41:08 -07:00
super.c import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00