linux-kernelorg-stable/fs/ntfs3
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
..
lib Changes for 6.12-rc3 2024-10-08 10:53:06 -07:00
Kconfig ntfs3: serve as alias for the legacy ntfs driver 2024-04-16 10:45:26 +02:00
Makefile
attrib.c fs/ntfs3: remove ability to change compression on mounted volume 2025-05-19 11:17:33 +02:00
attrlist.c fs/ntfs3: Remove unused al_delete_le 2024-10-01 12:19:05 +03:00
bitfunc.c fs/ntfs3: Add ntfs_bitmap_weight_le function and refactoring 2022-11-14 19:50:42 +03:00
bitmap.c fs/ntfs3: Fix a resource leak bug in wnd_extend() 2025-09-10 11:01:40 +02:00
debug.h
dir.c fs/ntfs3: Add sanity check for file name 2025-06-23 19:23:03 +02:00
file.c ntfs3: add FS_IOC_SETFSLABEL ioctl 2025-09-10 11:01:38 +02:00
frecord.c fs/ntfs3: Exclude call make_bad_inode for live nodes. 2025-07-07 14:35:46 +02:00
fslog.c fs/ntfs3: Fix handling of InitializeFileRecordSegment 2025-05-16 16:26:07 +02:00
fsntfs.c fs/ntfs3: Exclude call make_bad_inode for live nodes. 2025-07-07 14:35:46 +02:00
index.c fs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist 2025-09-10 11:01:41 +02:00
inode.c Coccinelle-based conversion to use ->i_state accessors 2025-10-20 20:22:26 +02:00
lznt.c fs/ntfs3: Check if more than chunk-size bytes are written 2024-09-03 16:58:39 +03:00
namei.c fs/ntfs3: Exclude call make_bad_inode for live nodes. 2025-07-07 14:35:46 +02:00
ntfs.h fs/ntfs3: fix symlinks cannot be handled correctly 2025-06-23 19:22:32 +02:00
ntfs_fs.h ntfs3: transition magic number to shared constant 2025-09-10 11:01:18 +02:00
record.c fs/ntfs3: Mark inode as bad as soon as error detected in mi_enum_attr() 2024-12-30 11:37:39 +03:00
run.c fs: ntfs3: Fix integer overflow in run_unpack() 2025-09-10 11:01:39 +02:00
super.c new helper: set_default_d_op() 2025-06-10 22:21:16 -04:00
upcase.c
xattr.c fs/ntfs3: Exclude call make_bad_inode for live nodes. 2025-07-07 14:35:46 +02:00