lkml.org 
[lkml]   [2011]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] vfs: Export do_fallocate() to kernel modules
Date
Export do_fallocate() so layered file systems such as ecryptfs can take
advantage of this interface. Existing interfaces to the fallocate
facilities require a file descriptor which is not available to layered
file systems.

Signed-off-by: Thieu Le <thieule@chromium.org>
---
fs/open.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/open.c b/fs/open.c
index f711921..5c3bcba 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -268,6 +268,7 @@ int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len)

return file->f_op->fallocate(file, mode, offset, len);
}
+EXPORT_SYMBOL_GPL(do_fallocate);

SYSCALL_DEFINE(fallocate)(int fd, int mode, loff_t offset, loff_t len)
{
--
1.7.3.1


\
 
 \ /
  Last update: 2011-08-23 23:51    [W:0.520 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site