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 /fs/ceph | |
| parent | 9e70e985bdc2c6fe7a160e4d59ddd7c0a39bc077 (diff) | |
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 'fs/ceph')
| -rw-r--r-- | fs/ceph/mds_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 0f497c39ff82..62dba710504d 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -2221,7 +2221,7 @@ static int trim_caps_cb(struct inode *inode, int mds, void *arg) int count; dput(dentry); d_prune_aliases(inode); - count = atomic_read(&inode->i_count); + count = icount_read(inode); if (count == 1) (*remaining)--; doutc(cl, "%p %llx.%llx cap %p pruned, count now %d\n", |
