summaryrefslogtreecommitdiffstats
path: root/fs/ioctl.c
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@netapp.com>2014-11-07 14:44:25 -0500
committerJ. Bruce Fields <bfields@redhat.com>2014-11-07 16:17:44 -0500
commit72c72bdf7bf53353d2d8e055194d27f0128be92b (patch)
treecdca64b1d630c3b7d7c0d5fa9cb500aa9c3a9da6 /fs/ioctl.c
parent9af94fc4e470deab3427d07551725f0bf844ebc8 (diff)
downloadlinux-72c72bdf7bf53353d2d8e055194d27f0128be92b.tar.gz
linux-72c72bdf7bf53353d2d8e055194d27f0128be92b.tar.bz2
linux-72c72bdf7bf53353d2d8e055194d27f0128be92b.zip
VFS: Rename do_fallocate() to vfs_fallocate()
This function needs to be exported so it can be used by the NFSD module when responding to the new ALLOCATE and DEALLOCATE operations in NFS v4.2. Christoph Hellwig suggested renaming the function to stay consistent with how other vfs functions are named. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/ioctl.c')
-rw-r--r--fs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 8ac3fad36192..0bd6142183ee 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -443,7 +443,7 @@ int ioctl_preallocate(struct file *filp, void __user *argp)
return -EINVAL;
}
- return do_fallocate(filp, FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len);
+ return vfs_fallocate(filp, FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len);
}
static int file_ioctl(struct file *filp, unsigned int cmd,