summaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/ifile.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2/ifile.c')
-rw-r--r--fs/nilfs2/ifile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/ifile.c b/fs/nilfs2/ifile.c
index d788a592835..6548c7851b4 100644
--- a/fs/nilfs2/ifile.c
+++ b/fs/nilfs2/ifile.c
@@ -174,7 +174,7 @@ int nilfs_ifile_count_free_inodes(struct inode *ifile,
*nmaxinodes = 0;
*nfreeinodes = 0;
- nused = atomic_read(&NILFS_I(ifile)->i_root->inodes_count);
+ nused = atomic64_read(&NILFS_I(ifile)->i_root->inodes_count);
err = nilfs_palloc_count_max_entries(ifile, nused, nmaxinodes);
if (likely(!err))
*nfreeinodes = *nmaxinodes - nused;