Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2a8b6e1 authored by Chris Mason's avatar Chris Mason
Browse files

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

parent bea495e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: