From: Alexander Zarochentsev Date: Fri, 29 Jul 2022 19:38:09 +0000 (+0300) Subject: LU-16061 osd-ldiskfs: clear EXTENT_FL for symlink agent inode X-Git-Tag: 2.15.52~85 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F48093%2F2;p=fs%2Flustre-release.git 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 --- 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));