Whamcloud - gitweb
LU-9333 osd: few cleanups to support gcc6 84/26584/11
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 22 May 2017 02:14:18 +0000 (22:14 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 29 May 2017 18:00:53 +0000 (18:00 +0000)
few cleanups to support gcc6

Change-Id: Ibe664e87ff67eb3d34ce09c9a1892e55a63ab2cb
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/26584
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
ldiskfs/kernel_patches/patches/rhel6.5/ext4-brackets-in-ext4-remove-blocks.patch [new file with mode: 0644]
ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel6.5.series
ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel6.6.series
ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel6.7.series
ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel6.8.series
lustre/include/lustre_fid.h
lustre/ldlm/ldlm_resource.c

diff --git a/ldiskfs/kernel_patches/patches/rhel6.5/ext4-brackets-in-ext4-remove-blocks.patch b/ldiskfs/kernel_patches/patches/rhel6.5/ext4-brackets-in-ext4-remove-blocks.patch
new file mode 100644 (file)
index 0000000..845cf2d
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
+index 1ed737f..77e2fb3 100644
+--- a/fs/ext4/extents.c
++++ b/fs/ext4/extents.c
+@@ -2276,9 +2276,10 @@ static int ext4_remove_blocks(handle_t *handle, 
+       unsigned short ee_len =  ext4_ext_get_actual_len(ex);
+       int i, metadata = 0, flags =0;
+
+-      if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode))
++      if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) {
+               metadata = 1;
+               flags = EXT4_FREE_BLOCKS_METADATA;
++      }
+ #ifdef EXTENTS_STATS
+       {
+               struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb);
index 43d8ff4..e662543 100644 (file)
@@ -47,3 +47,4 @@ rhel6.5/ext4-give-warning-with-dir-htree-growing.patch
 rhel6.5/ext4-fix-journal-quota.patch
 rhel6.3/ext4-dont-check-in-ro.patch
 rhel6.3/ext4-dont-check-before-replay.patch
 rhel6.5/ext4-fix-journal-quota.patch
 rhel6.3/ext4-dont-check-in-ro.patch
 rhel6.3/ext4-dont-check-before-replay.patch
+rhel6.5/ext4-brackets-in-ext4-remove-blocks.patch
index 96400b0..84962a9 100644 (file)
@@ -47,3 +47,4 @@ rhel6.3/ext4-notalloc_under_idatasem.patch
 rhel6.5/ext4-give-warning-with-dir-htree-growing.patch
 rhel6.6/ext4_s_max_ext_tree_depth.patch
 rhel6.5/ext4-fix-journal-quota.patch
 rhel6.5/ext4-give-warning-with-dir-htree-growing.patch
 rhel6.6/ext4_s_max_ext_tree_depth.patch
 rhel6.5/ext4-fix-journal-quota.patch
+rhel6.5/ext4-brackets-in-ext4-remove-blocks.patch
index 67f4bde..51b6734 100644 (file)
@@ -46,3 +46,4 @@ rhel6.3/ext4-notalloc_under_idatasem.patch
 rhel6.5/ext4-give-warning-with-dir-htree-growing.patch
 rhel6.6/ext4_s_max_ext_tree_depth.patch
 rhel6.5/ext4-fix-journal-quota.patch
 rhel6.5/ext4-give-warning-with-dir-htree-growing.patch
 rhel6.6/ext4_s_max_ext_tree_depth.patch
 rhel6.5/ext4-fix-journal-quota.patch
+rhel6.5/ext4-brackets-in-ext4-remove-blocks.patch
index 3c4ab71..70b2e61 100644 (file)
@@ -44,3 +44,4 @@ rhel6.3/ext4-notalloc_under_idatasem.patch
 rhel6.5/ext4-give-warning-with-dir-htree-growing.patch
 rhel6.6/ext4_s_max_ext_tree_depth.patch
 rhel6.5/ext4-fix-journal-quota.patch
 rhel6.5/ext4-give-warning-with-dir-htree-growing.patch
 rhel6.6/ext4_s_max_ext_tree_depth.patch
 rhel6.5/ext4-fix-journal-quota.patch
+rhel6.5/ext4-brackets-in-ext4-remove-blocks.patch
index dc996a5..8759b31 100644 (file)
@@ -772,6 +772,7 @@ static inline void ost_fid_from_resid(struct lu_fid *fid,
                /* old resid */
                struct ost_id oi;
 
                /* old resid */
                struct ost_id oi;
 
+               memset(&oi, 0, sizeof(oi));
                ostid_set_seq(&oi, name->name[LUSTRE_RES_ID_VER_OID_OFF]);
                if (ostid_set_id(&oi, name->name[LUSTRE_RES_ID_SEQ_OFF])) {
                        CERROR("Bad %llu to set " DOSTID "\n",
                ostid_set_seq(&oi, name->name[LUSTRE_RES_ID_VER_OID_OFF]);
                if (ostid_set_id(&oi, name->name[LUSTRE_RES_ID_SEQ_OFF])) {
                        CERROR("Bad %llu to set " DOSTID "\n",
index 52036fb..9f35954 100644 (file)
@@ -78,7 +78,6 @@ lprocfs_dump_ns_seq_write(struct file *file, const char __user *buffer,
 LPROC_SEQ_FOPS_WO_TYPE(ldlm, dump_ns);
 
 LPROC_SEQ_FOPS_RW_TYPE(ldlm_rw, uint);
 LPROC_SEQ_FOPS_WO_TYPE(ldlm, dump_ns);
 
 LPROC_SEQ_FOPS_RW_TYPE(ldlm_rw, uint);
-LPROC_SEQ_FOPS_RO_TYPE(ldlm, uint);
 
 #ifdef HAVE_SERVER_SUPPORT
 
 
 #ifdef HAVE_SERVER_SUPPORT