Whamcloud - gitweb
LU-15396 osd: include linux/file.h 23/45923/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 23 Dec 2021 08:10:21 +0000 (11:10 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 11 Jan 2022 06:19:35 +0000 (06:19 +0000)
in some 4.x kernels we need to include linux/file.h to have
alloc_file() defined.

Fixes: b0f150eba4 ("LU-13783 osd-ldiskfs: use alloc_file_pseudo to create fake files")
Test-Parameters: trivial
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I279945f70578030bf581fa2afc0ca7b4dfa83653
Reviewed-on: https://review.whamcloud.com/45923
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>

index 752685f..0ce9cce 100644 (file)
@@ -49,6 +49,7 @@
 #include <linux/dirent.h>
 #include <linux/statfs.h>
 #include <linux/bio.h>
+#include <linux/file.h>
 #include <ldiskfs/ldiskfs.h>
 #include <ldiskfs/ldiskfs_jbd2.h>