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/ext4/inline.c | |
parent | 255442c93843f52b6891b21d0b485bf2c97f93c3 (diff) |
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/ext4/inline.c')
-rw-r--r-- | fs/ext4/inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c index a8b987b71173..adfc1f360dae 100644 --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c | |||
@@ -1495,7 +1495,7 @@ int ext4_read_inline_dir(struct file *file, | |||
1495 | * dirent right now. Scan from the start of the inline | 1495 | * dirent right now. Scan from the start of the inline |
1496 | * dir to make sure. | 1496 | * dir to make sure. |
1497 | */ | 1497 | */ |
1498 | if (inode_cmp_iversion(inode, file->f_version)) { | 1498 | if (!inode_eq_iversion(inode, file->f_version)) { |
1499 | for (i = 0; i < extra_size && i < offset;) { | 1499 | for (i = 0; i < extra_size && i < offset;) { |
1500 | /* | 1500 | /* |
1501 | * "." is with offset 0 and | 1501 | * "." is with offset 0 and |