OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 1/2] mm: move common segment checks to separate helper function (v6)
Re: [PATCH 1/2] mm: move common segment checks to separate helper function (v6) [message #11022 is a reply to message #11016] Mon, 12 March 2007 08:27 Go to previous messageGo to previous message
Christoph Hellwig is currently offline  Christoph Hellwig
Messages: 59
Registered: April 2006
Member
On Mon, Mar 12, 2007 at 10:57:53AM +0300, Dmitriy Monakhov wrote:
> +/*
> + * Performs necessary checks before doing a write
> + *
> + * Adjust number of segments and amount of bytes to write.
> + * Returns appropriate error code that caller should return or
> + * zero in case that write should be allowed.
> + */
> +inline int generic_segment_checks(const struct iovec *iov,
> + unsigned long *nr_segs, size_t *count,
> + unsigned long access_flags)

Why isn't this static? Also I doubt that we want to inline this function.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: + fix-some-coding-style-errors-in-autofs.patch added to -mm tree
Next Topic: [PATCH] Copy mac_len in skb_clone() as well
Goto Forum:
  


Current Time: Sat Jul 12 09:30:29 GMT 2025

Total time taken to generate the page: 0.02188 seconds