diff options
author | Eric Sandeen <sandeen@redhat.com> | 2008-01-28 23:58:27 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-01-28 23:58:27 -0500 |
commit | 19295529db35381d46dbaf246f69b4e3b3393996 (patch) | |
tree | 0e4ace990776da02ce9dd3e54a0f9af787ebd4bc | |
parent | cd2291a463c26f60b18e0d9b1901be236dd7f402 (diff) | |
download | linux-3.10-19295529db35381d46dbaf246f69b4e3b3393996.tar.gz linux-3.10-19295529db35381d46dbaf246f69b4e3b3393996.tar.bz2 linux-3.10-19295529db35381d46dbaf246f69b4e3b3393996.zip |
ext4: export iov_shorten from kernel for ext4's use
Export iov_shorten() from kernel so that ext4 can
truncate too-large writes to bitmapped files.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
-rw-r--r-- | fs/read_write.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index c4d3d17923f..1c177f29e1b 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -446,6 +446,7 @@ unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to) } return seg; } +EXPORT_SYMBOL(iov_shorten); ssize_t do_sync_readv_writev(struct file *filp, const struct iovec *iov, unsigned long nr_segs, size_t len, loff_t *ppos, iov_fn_t fn) |