Loading include/linux/iomap.h +1 −1 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ static inline void *iomap_inline_data(const struct iomap *iomap, loff_t pos) * This is used to guard against accessing data beyond the page inline_data * points at. */ static inline bool iomap_inline_data_valid(struct iomap *iomap) static inline bool iomap_inline_data_valid(const struct iomap *iomap) { return iomap->length <= PAGE_SIZE - offset_in_page(iomap->inline_data); } Loading Loading
include/linux/iomap.h +1 −1 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ static inline void *iomap_inline_data(const struct iomap *iomap, loff_t pos) * This is used to guard against accessing data beyond the page inline_data * points at. */ static inline bool iomap_inline_data_valid(struct iomap *iomap) static inline bool iomap_inline_data_valid(const struct iomap *iomap) { return iomap->length <= PAGE_SIZE - offset_in_page(iomap->inline_data); } Loading