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
@@ -1495,7 +1495,7 @@ int ext4_read_inline_dir(struct file *file,
|
||||
* dirent right now. Scan from the start of the inline
|
||||
* dir to make sure.
|
||||
*/
|
||||
if (inode_cmp_iversion(inode, file->f_version)) {
|
||||
if (!inode_eq_iversion(inode, file->f_version)) {
|
||||
for (i = 0; i < extra_size && i < offset;) {
|
||||
/*
|
||||
* "." is with offset 0 and
|
||||
|
Reference in New Issue
Block a user