Skip to content

Commit

Permalink
ext4: export iov_shorten from kernel for ext4's use
Browse files Browse the repository at this point in the history
Export iov_shorten() from kernel so that ext4 can
truncate too-large writes to bitmapped files.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
  • Loading branch information
Eric Sandeen authored and Theodore Ts'o committed Jan 29, 2008
1 parent cd2291a commit 1929552
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/read_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1929552

Please sign in to comment.