commit | 387aae6fdd737038e92d7bb40712bdf6dcb11945 | [log] [tgz] |
---|---|---|
author | Hugh Dickins <hughd@google.com> | Sun Aug 04 11:30:25 2013 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Sun Aug 04 11:40:17 2013 -0700 |
tree | 7066b704e3ca7bdc714226aca98f0b5e278d3367 | |
parent | 2f85399115ff2632a2d32dd76ef8b524374e69f3 [diff] |
tmpfs: fix SEEK_DATA/SEEK_HOLE regression Commit 46a1c2c7ae53 ("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 <hughd@google.com> Cc: Jie Liu <jeff.liu@oracle.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>