From: Thieu Le <thieule@chromium.org>
To: viro@zeniv.linux.org.uk
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Thieu Le <thieule@chromium.org>
Subject: [PATCH] vfs: Export do_fallocate() to kernel modules
Date: Tue, 23 Aug 2011 14:47:55 -0700 [thread overview]
Message-ID: <1314136075-8784-1-git-send-email-thieule@chromium.org> (raw)
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
next reply other threads:[~2011-08-23 21:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-23 21:47 Thieu Le [this message]
2011-08-23 21:59 ` [PATCH] vfs: Export do_fallocate() to kernel modules Al Viro
[not found] ` <CAEcckGqfDUt=b9gdQAJHug__eht2tQymg95UXp3rERBp+oyDvg@mail.gmail.com>
2011-08-23 22:13 ` Thieu Le
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1314136075-8784-1-git-send-email-thieule@chromium.org \
--to=thieule@chromium.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).