From 73ac8e35e5d64d3fe4ca6c48514dc57058e3a7b8 Mon Sep 17 00:00:00 2001 From: Alexander Zarochentsev Date: Fri, 29 Jul 2022 22:38:09 +0300 Subject: [PATCH] LU-16061 osd-ldiskfs: clear EXTENT_FL for symlink agent inode The flag should be cleared for "fast" symlinks otherwise e2fsck complains about inode correctness. New agent inodes of symlink type may have EXT4_EXTENT_FL flag set if the fs has "extent" feature and it is not cleared as in other places where "fast" symlinks are created. HPE-bug-id: LUS-10237 Signed-off-by: Alexander Zarochentsev Change-Id: Ib7b807bb1298cc3a9fd4fdba35747b4bda6fe034 Reviewed-on: https://review.whamcloud.com/48093 Tested-by: jenkins Reviewed-by: Artem Blagodarenko Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/osd-ldiskfs/osd_handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/osd-ldiskfs/osd_handler.c b/lustre/osd-ldiskfs/osd_handler.c index ab7facf..a3bbd15 100644 --- a/lustre/osd-ldiskfs/osd_handler.c +++ b/lustre/osd-ldiskfs/osd_handler.c @@ -3989,6 +3989,7 @@ static struct inode *osd_create_local_agent_inode(const struct lu_env *env, */ if (S_ISLNK(type)) { BUILD_BUG_ON(LDISKFS_N_BLOCKS * 4 < FID_LEN + 1); + ldiskfs_clear_inode_flag(local, LDISKFS_INODE_EXTENTS); rc = scnprintf((char *)LDISKFS_I(local)->i_data, LDISKFS_N_BLOCKS * 4, DFID, PFID(fid)); -- 1.8.3.1