mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
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:
parent
bea495e5b4
commit
c2a8b6e110
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue