diff options
author | Goffredo Baroncelli <kreijack@inwind.it> | 2018-02-01 08:15:25 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2018-02-01 08:15:25 -0500 |
commit | c472c07bfed9c87d7e0b2c052d7e77fedd7109a9 (patch) | |
tree | 0d519381c30d42f2131931e32126aa4ef4fe4ab4 /fs/ext2 | |
parent | 255442c93843f52b6891b21d0b485bf2c97f93c3 (diff) | |
download | linux-c472c07bfed9c87d7e0b2c052d7e77fedd7109a9.tar.gz linux-c472c07bfed9c87d7e0b2c052d7e77fedd7109a9.tar.bz2 linux-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/ext2')
-rw-r--r-- | fs/ext2/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c index 4111085a129f..3b8114def693 100644 --- a/fs/ext2/dir.c +++ b/fs/ext2/dir.c @@ -294,7 +294,7 @@ ext2_readdir(struct file *file, struct dir_context *ctx) unsigned long npages = dir_pages(inode); unsigned chunk_mask = ~(ext2_chunk_size(inode)-1); unsigned char *types = NULL; - bool need_revalidate = inode_cmp_iversion(inode, file->f_version); + bool need_revalidate = !inode_eq_iversion(inode, file->f_version); if (pos > inode->i_size - EXT2_DIR_REC_LEN(1)) return 0; |