Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tmpfs: fix SEEK_DATA/SEEK_HOLE regression
Commit 46a1c2c ("vfs: export lseek_execute() to modules") broke the tmpfs SEEK_DATA/SEEK_HOLE implementation, because vfs_setpos() converts the carefully prepared -ENXIO to -EINVAL. Other filesystems avoid it in error cases: do the same in tmpfs. Signed-off-by: Hugh Dickins <[email protected]> Cc: Jie Liu <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information