diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-01-26 11:12:38 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-01-29 10:48:33 +0300 |
commit | 4fd6c08a16d7f1ba10212c9ef7bc73218144b463 (patch) | |
tree | 9f86834d3d7fd0405de514b5a1cdf43c9e8e2b7e /fs/ntfs3/dir.c | |
parent | 5ca87d01eba7bdfe9536a157ca33c1455bb8d16c (diff) |
fs/ntfs3: Use i_size_read and i_size_write
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/dir.c')
-rw-r--r-- | fs/ntfs3/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/dir.c b/fs/ntfs3/dir.c index 9f6dd445eb04..effa6accf8a8 100644 --- a/fs/ntfs3/dir.c +++ b/fs/ntfs3/dir.c @@ -517,7 +517,7 @@ static int ntfs_dir_count(struct inode *dir, bool *is_empty, size_t *dirs, u32 e_size, off, end; size_t drs = 0, fles = 0, bit = 0; struct indx_node *node = NULL; - size_t max_indx = ni->vfs_inode.i_size >> ni->dir.index_bits; + size_t max_indx = i_size_read(&ni->vfs_inode) >> ni->dir.index_bits; if (is_empty) *is_empty = true; |