super.c (f1615bbe9be4def59c3b3eaddb60722efeed16c2) super.c (743162013d40ca612b4cb53d3a200dff2d9ab26e)
1/*
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3 * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
4 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License version 2.
8 */

--- 850 unchanged lines hidden (view full) ---

859 if (thaw_gh.gh_gl)
860 gfs2_glock_dq_uninit(&thaw_gh);
861
862 gfs2_quota_cleanup(sdp);
863
864 return error;
865}
866
1/*
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3 * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
4 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License version 2.
8 */

--- 850 unchanged lines hidden (view full) ---

859 if (thaw_gh.gh_gl)
860 gfs2_glock_dq_uninit(&thaw_gh);
861
862 gfs2_quota_cleanup(sdp);
863
864 return error;
865}
866
867static int gfs2_umount_recovery_wait(void *word)
868{
869 schedule();
870 return 0;
871}
872
873/**
874 * gfs2_put_super - Unmount the filesystem
875 * @sb: The VFS superblock
876 *
877 */
878
879static void gfs2_put_super(struct super_block *sb)
880{

--- 8 unchanged lines hidden (view full) ---

889 /* Wait on outstanding recovery */
890restart:
891 spin_lock(&sdp->sd_jindex_spin);
892 list_for_each_entry(jd, &sdp->sd_jindex_list, jd_list) {
893 if (!test_bit(JDF_RECOVERY, &jd->jd_flags))
894 continue;
895 spin_unlock(&sdp->sd_jindex_spin);
896 wait_on_bit(&jd->jd_flags, JDF_RECOVERY,
867/**
868 * gfs2_put_super - Unmount the filesystem
869 * @sb: The VFS superblock
870 *
871 */
872
873static void gfs2_put_super(struct super_block *sb)
874{

--- 8 unchanged lines hidden (view full) ---

883 /* Wait on outstanding recovery */
884restart:
885 spin_lock(&sdp->sd_jindex_spin);
886 list_for_each_entry(jd, &sdp->sd_jindex_list, jd_list) {
887 if (!test_bit(JDF_RECOVERY, &jd->jd_flags))
888 continue;
889 spin_unlock(&sdp->sd_jindex_spin);
890 wait_on_bit(&jd->jd_flags, JDF_RECOVERY,
897 gfs2_umount_recovery_wait, TASK_UNINTERRUPTIBLE);
891 TASK_UNINTERRUPTIBLE);
898 goto restart;
899 }
900 spin_unlock(&sdp->sd_jindex_spin);
901
902 if (!(sb->s_flags & MS_RDONLY)) {
903 error = gfs2_make_fs_ro(sdp);
904 if (error)
905 gfs2_io_error(sdp);

--- 729 unchanged lines hidden ---
892 goto restart;
893 }
894 spin_unlock(&sdp->sd_jindex_spin);
895
896 if (!(sb->s_flags & MS_RDONLY)) {
897 error = gfs2_make_fs_ro(sdp);
898 if (error)
899 gfs2_io_error(sdp);

--- 729 unchanged lines hidden ---