diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-01-26 09:12:38 +0100 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-01-29 08:48:33 +0100 |
commit | 4fd6c08a16d7f1ba10212c9ef7bc73218144b463 (patch) | |
tree | 9f86834d3d7fd0405de514b5a1cdf43c9e8e2b7e /fs/ntfs3/dir.c | |
parent | fs/ntfs3: Prevent generic message "attempt to access beyond end of device" (diff) | |
download | linux-4fd6c08a16d7f1ba10212c9ef7bc73218144b463.tar.xz linux-4fd6c08a16d7f1ba10212c9ef7bc73218144b463.zip |
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; |