aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-03-28 11:33:05 -0700
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:33:11 +0200
commit5fae04a05333a3e0d93273a0d3848117b77cd6ec (patch)
tree0cd26bd87fd38464cfad6571a75dd4d264731ce3
parent446fc1508980fa32b59d7266e748937e15302a5c (diff)
downloadandroid_kernel_m2note-5fae04a05333a3e0d93273a0d3848117b77cd6ec.tar.gz
f2fs: define not-set fallocate flags
This fixes building bugs in aosp. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 94e1ba4a6..f4498398f 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -1213,9 +1213,15 @@ noalloc:
return ret;
}
+#ifndef FALLOC_FL_COLLAPSE_RANGE
#define FALLOC_FL_COLLAPSE_RANGE 0X08
+#endif
+#ifndef FALLOC_FL_ZERO_RANGE
#define FALLOC_FL_ZERO_RANGE 0X10
+#endif
+#ifndef FALLOC_FL_INSERT_RANGE
#define FALLOC_FL_INSERT_RANGE 0X20
+#endif
static long f2fs_fallocate(struct file *file, int mode,
loff_t offset, loff_t len)