dect
/
linux-2.6
Archived
13
0
Fork 0

Btrfs: Force f_pos to the max when a readdir hits the end of the directory.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason 2008-01-29 09:10:26 -05:00
parent bea495e5b4
commit c2a8b6e110
1 changed files with 1 additions and 1 deletions

View File

@ -1430,7 +1430,7 @@ read_dir_items:
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: