From: Hugh Dickins Date: Sun, 4 Aug 2013 18:30:25 +0000 (-0700) Subject: tmpfs: fix SEEK_DATA/SEEK_HOLE regression X-Git-Tag: v3.11-rc4~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=387aae6fdd737038e92d7bb40712bdf6dcb11945;p=pandora-kernel.git 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 Cc: Jie Liu Cc: Al Viro Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed