From: Eric Sandeen Date: Tue, 29 Jan 2008 04:58:27 +0000 (-0500) Subject: ext4: export iov_shorten from kernel for ext4's use X-Git-Tag: v2.6.25-rc1~1166^2~36 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19295529db35381d46dbaf246f69b4e3b3393996;p=linux-2.6 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 --- diff --git a/fs/read_write.c b/fs/read_write.c index c4d3d17923..1c177f29e1 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)