diff options
Diffstat (limited to 'fs/ocfs2/dir.c')
-rw-r--r-- | fs/ocfs2/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c index b7520e20a770..977763d4c27d 100644 --- a/fs/ocfs2/dir.c +++ b/fs/ocfs2/dir.c | |||
@@ -1776,7 +1776,7 @@ static int ocfs2_dir_foreach_blk_id(struct inode *inode, | |||
1776 | * readdir(2), then we might be pointing to an invalid | 1776 | * readdir(2), then we might be pointing to an invalid |
1777 | * dirent right now. Scan from the start of the block | 1777 | * dirent right now. Scan from the start of the block |
1778 | * to make sure. */ | 1778 | * to make sure. */ |
1779 | if (inode_cmp_iversion(inode, *f_version)) { | 1779 | if (!inode_eq_iversion(inode, *f_version)) { |
1780 | for (i = 0; i < i_size_read(inode) && i < offset; ) { | 1780 | for (i = 0; i < i_size_read(inode) && i < offset; ) { |
1781 | de = (struct ocfs2_dir_entry *) | 1781 | de = (struct ocfs2_dir_entry *) |
1782 | (data->id_data + i); | 1782 | (data->id_data + i); |
@@ -1870,7 +1870,7 @@ static int ocfs2_dir_foreach_blk_el(struct inode *inode, | |||
1870 | * readdir(2), then we might be pointing to an invalid | 1870 | * readdir(2), then we might be pointing to an invalid |
1871 | * dirent right now. Scan from the start of the block | 1871 | * dirent right now. Scan from the start of the block |
1872 | * to make sure. */ | 1872 | * to make sure. */ |
1873 | if (inode_cmp_iversion(inode, *f_version)) { | 1873 | if (!inode_eq_iversion(inode, *f_version)) { |
1874 | for (i = 0; i < sb->s_blocksize && i < offset; ) { | 1874 | for (i = 0; i < sb->s_blocksize && i < offset; ) { |
1875 | de = (struct ocfs2_dir_entry *) (bh->b_data + i); | 1875 | de = (struct ocfs2_dir_entry *) (bh->b_data + i); |
1876 | /* It's too expensive to do a full | 1876 | /* It's too expensive to do a full |