mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Fully working incremental fs filesystem Signed-off-by: Eugene Zemtsov <ezemtsov@google.com> Signed-off-by: Paul Lawrence <paullawrence@google.com> Bug: 133435829 Change-Id: I14741a61ce7891a0f9054e70f026917712cbef78
22 lines
419 B
C
22 lines
419 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright 2018 Google LLC
|
|
*/
|
|
#ifndef _INCFS_INTERNAL_H
|
|
#define _INCFS_INTERNAL_H
|
|
#include <linux/types.h>
|
|
|
|
struct mem_range {
|
|
u8 *data;
|
|
size_t len;
|
|
};
|
|
|
|
static inline struct mem_range range(u8 *data, size_t len)
|
|
{
|
|
return (struct mem_range){ .data = data, .len = len };
|
|
}
|
|
|
|
#define LOCK_REQUIRED(lock) WARN_ON_ONCE(!mutex_is_locked(&lock))
|
|
|
|
#endif /* _INCFS_INTERNAL_H */
|