• Linus Torvalds's avatar
    Rename superblock flags (MS_xyz -> SB_xyz) · 1751e8a6
    Linus Torvalds authored
    This is a pure automated search-and-replace of the internal kernel
    superblock flags.
    
    The s_flags are now called SB_*, with the names and the values for the
    moment mirroring the MS_* flags that they're equivalent to.
    
    Note how the MS_xyz flags are the ones passed to the mount system call,
    while the SB_xyz flags are what we then use in sb->s_flags.
    
    The script to do this was:
    
        # places to look in; re security/*: it generally should *not* be
        # touched (that stuff parses mount(2) arguments directly), but
        # there are two places where we really deal with superblock flags.
        FILES="drivers/mtd drivers/staging/lustre fs ipc mm \
                include/linux/fs.h include/uapi/linux/bfs_fs.h \
                security/apparmor/apparmorfs.c security/apparmor/include/lib.h"
        # the list of MS_... constants
        SYMS="RDONLY NOSUID NODEV NOEXEC SYNCHRONOUS REMOUNT MANDLOCK \
              DIRSYNC NOATIME NODIRATIME BIND MOVE REC VERBOSE SILENT \
              POSIXACL UNBINDABLE PRIVATE SLAVE SHARED RELATIME KERNMOUNT \
              I_VERSION STRICTATIME LAZYTIME SUBMOUNT NOREMOTELOCK NOSEC BORN \
              ACTIVE NOUSER"
    
        SED_PROG=
        for i in $SYMS; do SED_PROG="$SED_PROG -e s/MS_$i/SB_$i/g"; done
    
        # we want files that contain at least one of MS_...,
        # with fs/namespace.c and fs/pnode.c excluded.
        L=$(for i in $SYMS; do git grep -w -l MS_$i $FILES; done| sort|uniq|grep -v '^fs/namespace.c'|grep -v '^fs/pnode.c')
    
        for f in $L; do sed -i $f $SED_PROG; done
    Requested-by: 's avatarAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: 's avatarLinus Torvalds <torvalds@linux-foundation.org>
    1751e8a6
Name
Last commit
Last update
..
android Loading commit data...
board Loading commit data...
ccree Loading commit data...
clocking-wizard Loading commit data...
comedi Loading commit data...
dgnc Loading commit data...
emxx_udc Loading commit data...
fbtft Loading commit data...
fsl-dpaa2 Loading commit data...
fsl-mc Loading commit data...
fwserial Loading commit data...
gdm724x Loading commit data...
goldfish Loading commit data...
greybus Loading commit data...
gs_fpgaboot Loading commit data...
iio Loading commit data...
irda Loading commit data...
ks7010 Loading commit data...
lustre Loading commit data...
media Loading commit data...
most Loading commit data...
mt29f_spinand Loading commit data...
netlogic Loading commit data...
nvec Loading commit data...
octeon Loading commit data...
octeon-usb Loading commit data...
olpc_dcon Loading commit data...
pi433 Loading commit data...
rtl8188eu Loading commit data...
rtl8192e Loading commit data...
rtl8192u Loading commit data...
rtl8712 Loading commit data...
rtl8723bs Loading commit data...
rtlwifi Loading commit data...
rts5208 Loading commit data...
skein Loading commit data...
sm750fb Loading commit data...
speakup Loading commit data...
typec Loading commit data...
unisys Loading commit data...
vboxvideo Loading commit data...
vc04_services Loading commit data...
vme Loading commit data...
vt6655 Loading commit data...
vt6656 Loading commit data...
wilc1000 Loading commit data...
wlan-ng Loading commit data...
xgifb Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...