Whamcloud - gitweb
LU-15396 osd: include linux/file.h
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 20 Jan 2022 08:03:04 +0000 (00:03 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 21 Jan 2022 23:29:47 +0000 (23:29 +0000)
commitae5e9ef1805e198e5e0f8be46313a3361c34429b
treedcd67781b4ddacef367b7b239c28a7bba34d6b97
parentf68bb647d8e06ebb309262a94067be3ebec4c998
LU-15396 osd: include linux/file.h

in some 4.x kernels we need to include linux/file.h to have
alloc_file() defined.

Lustre-change: https://review.whamcloud.com/45923
Lustre-commit: a945a7cfe98df369933c8e8dfc50ba214296e150

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-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/46225
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osd-ldiskfs/osd_internal.h