]> git.baikalelectronics.ru Git - kernel.git/commit
fs: handle SEEK_HOLE/SEEK_DATA properly in all fs's that define their own llseek
authorJosef Bacik <josef@redhat.com>
Mon, 18 Jul 2011 17:21:38 +0000 (13:21 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 00:47:58 +0000 (20:47 -0400)
commit855ae7a217b43a8edf7687e34bc9de2dcc108972
tree99636fd666c8148a5bf58ea4844263d4b3a36310
parent2c2cc651fa247ebf90ce8dd050bc3975324f2b71
fs: handle SEEK_HOLE/SEEK_DATA properly in all fs's that define their own llseek

This converts everybody to handle SEEK_HOLE/SEEK_DATA properly.  In some cases
we just return -EINVAL, in others we do the normal generic thing, and in others
we're simply making sure that the properly due-dilligence is done.  For example
in NFS/CIFS we need to make sure the file size is update properly for the
SEEK_HOLE and SEEK_DATA case, but since it calls the generic llseek stuff itself
that is all we have to do.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/block_dev.c
fs/ceph/dir.c
fs/ceph/file.c
fs/cifs/cifsfs.c
fs/fuse/file.c
fs/hpfs/dir.c
fs/nfs/file.c