summarylogtreecommitdiffstats
path: root/0003-LINUX-5.8-do-not-set-name-field-in-backing_dev_info.patch
diff options
context:
space:
mode:
authorMichael Lass2020-07-21 22:15:01 +0200
committerMichael Lass2020-07-21 22:15:01 +0200
commit5b5aa46d82852b3d6210d71f5b01d7407705940d (patch)
treeaf6a306ab213ffb4e99721ad5eeb2518b227a7d9 /0003-LINUX-5.8-do-not-set-name-field-in-backing_dev_info.patch
parentb2005ecaebc9c2caf0009e3fb9c3a32df8da2c13 (diff)
downloadaur-5b5aa46d82852b3d6210d71f5b01d7407705940d.tar.gz
Prepare for Linux 5.8
Diffstat (limited to '0003-LINUX-5.8-do-not-set-name-field-in-backing_dev_info.patch')
-rw-r--r--0003-LINUX-5.8-do-not-set-name-field-in-backing_dev_info.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/0003-LINUX-5.8-do-not-set-name-field-in-backing_dev_info.patch b/0003-LINUX-5.8-do-not-set-name-field-in-backing_dev_info.patch
new file mode 100644
index 00000000000..9bed0a8166a
--- /dev/null
+++ b/0003-LINUX-5.8-do-not-set-name-field-in-backing_dev_info.patch
@@ -0,0 +1,49 @@
+From c8d51224d54275ac34f9bb4d817842e73e777b14 Mon Sep 17 00:00:00 2001
+From: Cheyenne Wills <cwills@sinenomine.net>
+Date: Fri, 3 Jul 2020 10:34:42 -0600
+Subject: [PATCH 3/4] LINUX 5.8: do not set name field in backing_dev_info
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Linux-5.8-rc1 commit 'bdi: remove the name field in struct
+backing_dev_info' (1cd925d5838)
+
+Do not set the name field in the backing_dev_info structure if it is
+not available. Uses an existing config test
+ 'STRUCT_BACKING_DEV_INFO_HAS_NAME'
+
+Note the name field in the backing_dev_info structure was added in
+Linux-2.6.32
+
+Reviewed-on: https://gerrit.openafs.org/14248
+Tested-by: BuildBot <buildbot@rampaginggeek.com>
+Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
+(cherry picked from commit d8ec294534fcdee77a2ccd297b4b167dc4d5573d)
+
+Change-Id: I3d9e18092db998a4c4f26bd63ee3b75383a53d4c
+Reviewed-on: https://gerrit.openafs.org/14268
+Tested-by: BuildBot <buildbot@rampaginggeek.com>
+Reviewed-by: Michael Laß <lass@mail.uni-paderborn.de>
+Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
+---
+ src/afs/LINUX/osi_vfsops.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c
+index 8bbb5f225..ca1d5c83b 100644
+--- a/src/afs/LINUX/osi_vfsops.c
++++ b/src/afs/LINUX/osi_vfsops.c
+@@ -121,7 +121,9 @@ afs_fill_super(struct super_block *sb, void *data, int silent)
+ code = super_setup_bdi(sb);
+ if (code)
+ goto out;
++# if defined(STRUCT_BACKING_DEV_INFO_HAS_NAME)
+ sb->s_bdi->name = "openafs";
++# endif
+ sb->s_bdi->ra_pages = 32;
+ #else
+ /* used for inodes backing_dev_info field, also */
+--
+2.27.0
+