aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/dir.c')
-rw-r--r--fs/ext4/dir.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c
index 18ac173af575..f8595787a70e 100644
--- a/fs/ext4/dir.c
+++ b/fs/ext4/dir.c
@@ -188,8 +188,9 @@ revalidate:
188 de = (struct ext4_dir_entry_2 *) (bh->b_data + offset); 188 de = (struct ext4_dir_entry_2 *) (bh->b_data + offset);
189 if (!ext4_check_dir_entry ("ext4_readdir", inode, de, 189 if (!ext4_check_dir_entry ("ext4_readdir", inode, de,
190 bh, offset)) { 190 bh, offset)) {
191 /* On error, skip the f_pos to the 191 /*
192 next block. */ 192 * On error, skip the f_pos to the next block
193 */
193 filp->f_pos = (filp->f_pos | 194 filp->f_pos = (filp->f_pos |
194 (sb->s_blocksize - 1)) + 1; 195 (sb->s_blocksize - 1)) + 1;
195 brelse (bh); 196 brelse (bh);
@@ -508,7 +509,7 @@ finished:
508 509
509static int ext4_release_dir (struct inode * inode, struct file * filp) 510static int ext4_release_dir (struct inode * inode, struct file * filp)
510{ 511{
511 if (filp->private_data) 512 if (filp->private_data)
512 ext4_htree_free_dir_info(filp->private_data); 513 ext4_htree_free_dir_info(filp->private_data);
513 514
514 return 0; 515 return 0;