]> git.baikalelectronics.ru Git - kernel.git/commit
tmpfs: fix SEEK_DATA/SEEK_HOLE regression
authorHugh Dickins <hughd@google.com>
Sun, 4 Aug 2013 18:30:25 +0000 (11:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 4 Aug 2013 18:40:17 +0000 (11:40 -0700)
commit33f9ab17dc2549b29f1f7213f6649a7d9cef91b4
tree7066b704e3ca7bdc714226aca98f0b5e278d3367
parent83aac3429a745324f0adceb7c06e5fdd5e42c7fe
tmpfs: fix SEEK_DATA/SEEK_HOLE regression

Commit 951555079925 ("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>
mm/shmem.c