the_nilfs.c (57a4bfc486727b68e4422031aeba427fb7262668) the_nilfs.c (7ecaa46cfea453238a369b3019739d50ff5d7c37)
1/*
2 * the_nilfs.c - the_nilfs shared structure.
3 *
4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

319 goto failed_unload;
320 }
321
322 err = nilfs_salvage_orphan_logs(nilfs, sbi, &ri);
323 if (err)
324 goto failed_unload;
325
326 down_write(&nilfs->ns_sem);
1/*
2 * the_nilfs.c - the_nilfs shared structure.
3 *
4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

319 goto failed_unload;
320 }
321
322 err = nilfs_salvage_orphan_logs(nilfs, sbi, &ri);
323 if (err)
324 goto failed_unload;
325
326 down_write(&nilfs->ns_sem);
327 nilfs->ns_mount_state |= NILFS_VALID_FS;
328 nilfs->ns_sbp[0]->s_state = cpu_to_le16(nilfs->ns_mount_state);
329 err = nilfs_commit_super(sbi, 1);
327 nilfs->ns_mount_state |= NILFS_VALID_FS; /* set "clean" flag */
328 err = nilfs_cleanup_super(sbi);
330 up_write(&nilfs->ns_sem);
331
332 if (err) {
333 printk(KERN_ERR "NILFS: failed to update super block. "
334 "recovery unfinished.\n");
335 goto failed_unload;
336 }
337 printk(KERN_INFO "NILFS: recovery complete.\n");

--- 449 unchanged lines hidden ---
329 up_write(&nilfs->ns_sem);
330
331 if (err) {
332 printk(KERN_ERR "NILFS: failed to update super block. "
333 "recovery unfinished.\n");
334 goto failed_unload;
335 }
336 printk(KERN_INFO "NILFS: recovery complete.\n");

--- 449 unchanged lines hidden ---