linux/fs/befs
David Howells bc98a42c1f 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>
2017-07-17 08:45:34 +01:00
..
befs_fs_types.h befs: remove trailing whitespaces 2016-12-22 11:25:23 +00:00
befs.h befs: fix style issues in header files 2016-12-22 11:25:22 +00:00
btree.c befs: add kernel-doc formatting for befs_bt_read_super() 2017-07-09 10:42:50 +01:00
btree.h befs: remove trailing whitespaces 2016-12-22 11:25:23 +00:00
ChangeLog Fix common misspellings 2011-03-31 11:26:23 -03:00
datastream.c befs: remove trailing whitespaces 2016-12-22 11:25:23 +00:00
datastream.h befs: fix style issues in header files 2016-12-22 11:25:22 +00:00
debug.c befs: fix style issues in debug.c 2016-12-22 11:25:19 +00:00
endian.h befs: don't pass huge structs by value 2011-01-13 08:03:15 -08:00
inode.c befs: fix style issues in inode.c 2016-12-22 11:25:20 +00:00
inode.h befs: remove trailing whitespaces 2016-12-22 11:25:23 +00:00
io.c befs: remove signatures from comments 2016-12-22 11:25:22 +00:00
io.h befs: remove trailing whitespaces 2016-12-22 11:25:23 +00:00
Kconfig fs/befs: remove depends on CONFIG_EXPERIMENTAL 2013-01-21 14:39:04 -08:00
linuxvfs.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2017-07-17 08:45:34 +01:00
Makefile BEFS: logging cleanup 2014-04-03 16:21:25 -07:00
super.c befs: fix style issues in super.c 2016-10-08 10:01:34 +01:00
super.h befs: fix style issues in header files 2016-12-22 11:25:22 +00:00
TODO Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00