mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-06 02:48:50 +07:00
Btrfs: Fix looping on readdir of the subvol roots
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
0762704b19
commit
5e591a0703
@ -1465,7 +1465,10 @@ static int btrfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
|
||||
di = (struct btrfs_dir_item *)((char *)di + di_len);
|
||||
}
|
||||
}
|
||||
filp->f_pos = INT_LIMIT(typeof(filp->f_pos));
|
||||
if (key_type == BTRFS_DIR_INDEX_KEY)
|
||||
filp->f_pos = INT_LIMIT(typeof(filp->f_pos));
|
||||
else
|
||||
filp->f_pos++;
|
||||
nopos:
|
||||
ret = 0;
|
||||
err:
|
||||
|
Loading…
Reference in New Issue
Block a user