On Wed, Feb 19, 2014 at 01:37:43AM +0900, Namjae Jeon wrote:
> +     /*
> +      * There is no need to overlap collapse range with EOF, in which case
> +      * it is effectively a truncate operation
> +      */
> +     if ((mode & FALLOC_FL_COLLAPSE_RANGE) &&
> +         (offset + len >= i_size_read(inode)))
> +             return -EINVAL;
> +

I wonder if we should just translate a collapse range that is
equivalent to a truncate operation to, in fact, be a truncate
operation?

                                                - Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to