diff options
author | Goffredo Baroncelli <kreijack@inwind.it> | 2018-02-01 14:15:25 +0100 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2018-02-01 14:15:25 +0100 |
commit | c472c07bfed9c87d7e0b2c052d7e77fedd7109a9 (patch) | |
tree | 0d519381c30d42f2131931e32126aa4ef4fe4ab4 /fs/affs | |
parent | Merge tag 'docs-4.16' of git://git.lwn.net/linux (diff) | |
download | linux-c472c07bfed9c87d7e0b2c052d7e77fedd7109a9.tar.xz 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/affs')
-rw-r--r-- | fs/affs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/affs/dir.c b/fs/affs/dir.c index d180b46453cf..b2bf7016e1b3 100644 --- a/fs/affs/dir.c +++ b/fs/affs/dir.c @@ -81,7 +81,7 @@ affs_readdir(struct file *file, struct dir_context *ctx) * we can jump directly to where we left off. */ ino = (u32)(long)file->private_data; - if (ino && inode_cmp_iversion(inode, file->f_version) == 0) { + if (ino && inode_eq_iversion(inode, file->f_version)) { pr_debug("readdir() left off=%d\n", ino); goto inside; } |