linux/fs/ufs
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 fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile
balloc.c ufs: Convert ufs_change_blocknr() to take a folio 2024-10-18 17:35:31 -04:00
cylinder.c ufs: fix ufs_read_cylinder() failure handling 2024-10-18 17:35:31 -04:00
dir.c fs: Remove three arguments from block_write_end() 2025-06-24 15:53:40 +02:00
file.c fs: convert simple use of generic_file_*_mmap() to .mmap_prepare() 2025-06-17 13:47:45 +02:00
ialloc.c ufs: convert to new timestamp accessors 2023-10-18 14:08:28 +02:00
inode.c Coccinelle-based conversion to use ->i_state accessors 2025-10-20 20:22:26 +02:00
namei.c Change inode_operations.mkdir to return struct dentry * 2025-02-27 20:00:17 +01:00
super.c fix the regression in ufs options parsing 2025-07-23 11:45:04 -04:00
swab.h
ufs.h ufs: split ->s_mount_opt - don't mix flavour and on-error 2025-05-14 22:40:55 -04:00
ufs_fs.h ufs: ufs_sb_private_info: remove unused s_{2,3}apb fields 2024-11-12 19:02:12 -05:00
util.c ufs: get rid of ubh_{ubhcpymem,memcpyubh}() 2024-10-18 17:35:31 -04:00
util.h ufs: get rid of ubh_{ubhcpymem,memcpyubh}() 2024-10-18 17:35:31 -04:00