X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fobd_mount.c;h=9cef3236a0d8e24c26147d372f3c73e8d4485414;hp=bffa193a3b33b0496dca7491068cbeaebeff2015;hb=2ec879b6ee137c0b17f9306b20ae702d159b511a;hpb=d70bdd9b1b458d6bbffde62ee3a6d5fba2755b2e diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index bffa193..9cef323 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -2005,9 +2005,6 @@ void lustre_register_kill_super_cb(void (*cfs)(struct super_block *sb)) struct super_block * lustre_get_sb(struct file_system_type *fs_type, int flags, const char *devname, void * data) { - /* calls back in fill super */ - /* we could append devname= onto options (*data) here, - but 2.4 doesn't get devname. So we do it in mount_lustre.c */ return get_sb_nodev(fs_type, flags, data, lustre_fill_super); } #else @@ -2015,9 +2012,6 @@ int lustre_get_sb(struct file_system_type *fs_type, int flags, const char *devname, void * data, struct vfsmount *mnt) { - /* calls back in fill super */ - /* we could append devname= onto options (*data) here, - but 2.4 doesn't get devname. So we do it in mount_lustre.c */ return get_sb_nodev(fs_type, flags, data, lustre_fill_super, mnt); } #endif @@ -2026,7 +2020,7 @@ void lustre_kill_super(struct super_block *sb) { struct lustre_sb_info *lsi = s2lsi(sb); - if (kill_super_cb && lsi &&(lsi->lsi_flags & LSI_SERVER)) + if (kill_super_cb && lsi && !(lsi->lsi_flags & LSI_SERVER)) (*kill_super_cb)(sb); kill_anon_super(sb);