summaryrefslogtreecommitdiffstats
path: root/fs/ioprio.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-01-06 04:46:26 +0100
committerTheodore Ts'o <tytso@mit.edu>2009-01-06 04:46:26 +0100
commitb3881f74b31b7d47d0f1c4d89ac3e7f0b9c05e3e (patch)
tree131190b7ec627fd2ef2ecc818a7b9c17b83ccd63 /fs/ioprio.c
parentjbd2: Submit writes to the journal using WRITE_SYNC (diff)
downloadlinux-b3881f74b31b7d47d0f1c4d89ac3e7f0b9c05e3e.tar.xz
linux-b3881f74b31b7d47d0f1c4d89ac3e7f0b9c05e3e.zip
ext4: Add mount option to set kjournald's I/O priority
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/ioprio.c')
-rw-r--r--fs/ioprio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ioprio.c b/fs/ioprio.c
index 3569e0ad86a2..1a39ac370942 100644
--- a/fs/ioprio.c
+++ b/fs/ioprio.c
@@ -27,7 +27,7 @@
#include <linux/security.h>
#include <linux/pid_namespace.h>
-static int set_task_ioprio(struct task_struct *task, int ioprio)
+int set_task_ioprio(struct task_struct *task, int ioprio)
{
int err;
struct io_context *ioc;
@@ -70,6 +70,7 @@ static int set_task_ioprio(struct task_struct *task, int ioprio)
task_unlock(task);
return err;
}
+EXPORT_SYMBOL_GPL(set_task_ioprio);
asmlinkage long sys_ioprio_set(int which, int who, int ioprio)
{