Skip to content

Conversation

@edgargabriel
Copy link
Member

The functionality was migrated to fs/base/fs_base_get_parent_dir.c long
ago, but the includes stayed. Though in lustre 2.14 lustre_user.h
moved the inclusion of linux/fs.h outside the __KERNEL__ guard. This
triggered now Debian bug #898743 [1], which states that including
sys/mount.h after linux/fs.h breaks compilation. Thus the include
removal also avoids this breakage.

Closes #8508.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898743

Signed-off-by: Bert Wesarg bert.wesarg@tu-dresden.de
(cherry picked from commit 5b525b2)

The functionality was migrated to `fs/base/fs_base_get_parent_dir.c` long
ago, but the includes stayed. Though in lustre 2.14 `lustre_user.h`
moved the inclusion of `linux/fs.h` outside the `__KERNEL__` guard. This
triggered now Debian bug #898743 [1], which states that including
`sys/mount.h` after `linux/fs.h` breaks compilation. Thus the include
removal also avoids this breakage.

Closes open-mpi#8508.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898743

Signed-off-by: Bert Wesarg <bert.wesarg@tu-dresden.de>
(cherry picked from commit 5b525b2)
@edgargabriel edgargabriel added this to the v4.0.6 milestone Feb 23, 2021
@bertwesarg
Copy link
Member

LGTM, but I cannot approve.

Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsquyres jsquyres changed the title fs/lustre: Remove unneeded includes v4.0.x: fs/lustre: Remove unneeded includes Feb 23, 2021
@hppritcha hppritcha merged commit c4969c5 into open-mpi:v4.0.x Mar 1, 2021
@edgargabriel edgargabriel deleted the pr/fix-lustre-2.14-v4.0.x branch March 3, 2023 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants