Linux_5.0: Use super_block flags instead of Mount flags when filling sb 32/13432/2
authorCheyenne Wills <cwills@sinenomine.net>
Thu, 17 Jan 2019 23:00:37 +0000 (16:00 -0700)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 18 Jan 2019 14:21:23 +0000 (09:21 -0500)
commit3969bbca6017eb0ce6e1c3099b135f210403f661
tree53992ab94964b70e06ffd13234af6547c02ce989
parent892045a9803ed471986569705d9d727165ca7ecf
Linux_5.0: Use super_block flags instead of Mount flags when filling sb

In Kernel commit e262e32d6bde0f77fb0c95d977482fc872c51996
the mount flags (MS_) were moved from uapi/linux/fs.h to
uapi/linux/mount.h. This caused a compile failure in
src/afs/LINUX/osi_vfsops.c

The Linux documentation in uapi/linux/mount.h indicates that the MS_
(mount) flags should only be used when calling sys_mount and filesystems
should use the SB_ (super_block) equivalent.

src/afs/LINUX/osi_vfsops.c utilized the mount flag MS_NOATIME while
filling the super_block.  Changed to use SB_NOATIME (which has the same
numeric value as MS_NOATIME) if available.

Change-Id: I2b2199de566fbadd45e857b37d24ce63002c7736
Reviewed-on: https://gerrit.openafs.org/13432
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/LINUX/osi_vfsops.c