aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ufs
diff options
context:
space:
mode:
authorGoffredo Baroncelli <kreijack@inwind.it>2018-02-01 08:15:25 -0500
committerJeff Layton <jlayton@redhat.com>2018-02-01 08:15:25 -0500
commitc472c07bfed9c87d7e0b2c052d7e77fedd7109a9 (patch)
tree0d519381c30d42f2131931e32126aa4ef4fe4ab4 /fs/ufs
parentMerge tag 'docs-4.16' of git://git.lwn.net/linux (diff)
downloadlinux-dev-c472c07bfed9c87d7e0b2c052d7e77fedd7109a9.tar.xz
linux-dev-c472c07bfed9c87d7e0b2c052d7e77fedd7109a9.zip
iversion: Rename make inode_cmp_iversion{+raw} to inode_eq_iversion{+raw}
The function inode_cmp_iversion{+raw} is counter-intuitive, because it returns true when the counters are different and false when these are equal. Rename it to inode_eq_iversion{+raw}, which will returns true when the counters are equal and false otherwise. Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it> Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/ufs')
-rw-r--r--fs/ufs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ufs/dir.c b/fs/ufs/dir.c
index 50dfce000864..b721d0bda5e5 100644
--- a/fs/ufs/dir.c
+++ b/fs/ufs/dir.c
@@ -429,7 +429,7 @@ ufs_readdir(struct file *file, struct dir_context *ctx)
unsigned long n = pos >> PAGE_SHIFT;
unsigned long npages = dir_pages(inode);
unsigned chunk_mask = ~(UFS_SB(sb)->s_uspi->s_dirblksize - 1);
- bool need_revalidate = inode_cmp_iversion(inode, file->f_version);
+ bool need_revalidate = !inode_eq_iversion(inode, file->f_version);
unsigned flags = UFS_SB(sb)->s_flags;
UFSD("BEGIN\n");