mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
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>
This commit is contained in:
committed by
Jeff Layton
parent
255442c938
commit
c472c07bfe
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user