linux/fs/ubifs
Mateusz Guzik b4dbfd8653
Coccinelle-based conversion to use ->i_state accessors
All places were patched by coccinelle with the default expecting that
->i_lock is held, afterwards entries got fixed up by hand to use
unlocked variants as needed.

The script:
@@
expression inode, flags;
@@

- inode->i_state & flags
+ inode_state_read(inode) & flags

@@
expression inode, flags;
@@

- inode->i_state &= ~flags
+ inode_state_clear(inode, flags)

@@
expression inode, flag1, flag2;
@@

- inode->i_state &= ~flag1 & ~flag2
+ inode_state_clear(inode, flag1 | flag2)

@@
expression inode, flags;
@@

- inode->i_state |= flags
+ inode_state_set(inode, flags)

@@
expression inode, flags;
@@

- inode->i_state = flags
+ inode_state_assign(inode, flags)

@@
expression inode, flags;
@@

- flags = inode->i_state
+ flags = inode_state_read(inode)

@@
expression inode, flags;
@@

- READ_ONCE(inode->i_state) & flags
+ inode_state_read(inode) & flags

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-10-20 20:22:26 +02:00
..
Kconfig fscrypt: Allow modular crypto algorithms 2019-12-31 10:33:51 -06:00
Makefile ubifs: Export filesystem error counters 2021-12-23 20:23:42 +01:00
auth.c ubifs: auth.c: fix kernel-doc function prototype warning 2024-01-05 16:34:39 +01:00
budget.c ubifs: Reserve one leb for each journal head while doing budget 2023-02-02 21:13:40 +01:00
commit.c ubifs: Check @c->dirty_[n|p]n_cnt and @c->nroot state under @c->lp_mutex 2024-01-05 17:03:41 +01:00
compress.c ubifs: Use ACOMP_REQUEST_CLONE 2025-04-16 15:16:20 +08:00
crypto.c ubifs: move crypt info pointer to fs-specific part of inode 2025-08-21 13:58:07 +02:00
debug.c ubifs: skip dumping tnc tree when zroot is null 2025-01-18 15:31:35 +01:00
debug.h ubifs: correct UBIFS_DFS_DIR_LEN macro definition and improve code clarity 2024-07-12 21:52:24 +02:00
dir.c Change inode_operations.mkdir to return struct dentry * 2025-02-27 20:00:17 +01:00
file.c Coccinelle-based conversion to use ->i_state accessors 2025-10-20 20:22:26 +02:00
find.c ubifs: fix kernel-doc warnings 2024-07-12 21:53:35 +02:00
gc.c ubifs: read-only if LEB may always be taken in ubifs_garbage_collect 2021-12-23 22:30:38 +01:00
io.c ubifs: Switch to use hrtimer_setup() 2025-02-18 10:32:33 +01:00
ioctl.c tree-wide: s/struct fileattr/struct file_kattr/g 2025-07-04 16:14:39 +02:00
journal.c ubifs: Fix grammar in error message 2025-05-22 20:50:43 +02:00
key.h ubifs: allow both hash and disk name to be provided in no-key names 2020-01-22 14:49:56 -08:00
log.c
lprops.c ubifs: fix kernel-doc warnings 2024-07-12 21:53:35 +02:00
lpt.c ubifs: fix kernel-doc warnings 2024-07-12 21:53:35 +02:00
lpt_commit.c ubifs: dump_lpt_leb: remove return at end of void function 2025-01-18 15:26:40 +01:00
master.c ubifs: add check for crypto_shash_tfm_digest 2024-07-12 22:01:09 +02:00
misc.c
misc.h ubifs: misc.h: delete a duplicated word 2020-08-02 22:59:03 +02:00
orphan.c ubifs: Display the inode number when orphan twice happens 2024-11-14 17:49:31 +01:00
recovery.c ubifs: Pass node length in all node dumping callers 2020-12-13 22:12:32 +01:00
replay.c ubifs: fix kernel-doc warnings 2024-07-12 21:53:35 +02:00
sb.c ubifs: Default to zstd compression 2021-04-15 22:00:26 +02:00
scan.c ubifs: Pass node length in all node dumping callers 2020-12-13 22:12:32 +01:00
shrinker.c
super.c Coccinelle-based conversion to use ->i_state accessors 2025-10-20 20:22:26 +02:00
sysfs.c ubifs: correct UBIFS_DFS_DIR_LEN macro definition and improve code clarity 2024-07-12 21:52:24 +02:00
tnc.c ubifs: Remove ineffective function ubifs_evict_xattr_inode() 2024-11-14 17:33:11 +01:00
tnc_commit.c ubifs: authentication: Fix use-after-free in ubifs_tnc_end_commit 2024-11-14 19:46:58 +01:00
tnc_misc.c ubifs: dbg_check_idx_size: Fix kmemleak if loading znode failed 2024-02-25 21:40:11 +01:00
ubifs-media.h ubifs: Add support for zstd compression. 2019-07-08 19:43:53 +02:00
ubifs.h ubifs: move crypt info pointer to fs-specific part of inode 2025-08-21 13:58:07 +02:00
xattr.c ubifs: xattr: remove unused anonymous enum 2024-11-14 19:30:26 +01:00