diff options
| author | Josef Bacik <josef@toxicpanda.com> | 2025-08-26 11:39:02 -0400 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-09-01 12:41:09 +0200 |
| commit | 37b27bd5d6217b75d315f28b4399aad0a336f299 (patch) | |
| tree | e72e871a9c7120da2f8849523eca1cfb31f851ea /security | |
| parent | 9e70e985bdc2c6fe7a160e4d59ddd7c0a39bc077 (diff) | |
| download | linux-37b27bd5d6217b75d315f28b4399aad0a336f299.tar.gz linux-37b27bd5d6217b75d315f28b4399aad0a336f299.tar.bz2 linux-37b27bd5d6217b75d315f28b4399aad0a336f299.zip | |
fs: add an icount_read helper
Instead of doing direct access to ->i_count, add a helper to handle
this. This will make it easier to convert i_count to a refcount later.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/9bc62a84c6b9d6337781203f60837bd98fbc4a96.1756222464.git.josef@toxicpanda.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'security')
| -rw-r--r-- | security/landlock/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/landlock/fs.c b/security/landlock/fs.c index c04f8879ad03..0bade2c5aa1d 100644 --- a/security/landlock/fs.c +++ b/security/landlock/fs.c @@ -1281,7 +1281,7 @@ static void hook_sb_delete(struct super_block *const sb) struct landlock_object *object; /* Only handles referenced inodes. */ - if (!atomic_read(&inode->i_count)) + if (!icount_read(inode)) continue; /* |
