Skip to content

Commit

Permalink
Btrfs: Force f_pos to the max when a readdir hits the end of the dire…
Browse files Browse the repository at this point in the history
…ctory.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent bea495e commit c2a8b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ static int btrfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
di = (struct btrfs_dir_item *)((char *)di + di_len);
}
}
filp->f_pos++;
filp->f_pos = INT_LIMIT(typeof(filp->f_pos));
nopos:
ret = 0;
err:
Expand Down

0 comments on commit c2a8b6e

Please sign in to comment.