diff options
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r-- | fs/gfs2/super.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c index 9ccf0b9c5980..fff5a96f4152 100644 --- a/fs/gfs2/super.c +++ b/fs/gfs2/super.c | |||
@@ -447,25 +447,6 @@ int gfs2_jdesc_check(struct gfs2_jdesc *jd) | |||
447 | return error; | 447 | return error; |
448 | } | 448 | } |
449 | 449 | ||
450 | int gfs2_lookup_master_dir(struct gfs2_sbd *sdp) | ||
451 | { | ||
452 | struct inode *inode = NULL; | ||
453 | struct gfs2_glock *gl; | ||
454 | int error; | ||
455 | |||
456 | error = gfs2_glock_get(sdp, | ||
457 | sdp->sd_sb.sb_master_dir.no_addr, | ||
458 | &gfs2_inode_glops, CREATE, &gl); | ||
459 | if (!error) { | ||
460 | error = gfs2_lookup_simple(sdp->sd_root_dir, ".gfs2_admin", | ||
461 | &inode); | ||
462 | sdp->sd_master_dir = inode; | ||
463 | gfs2_glock_put(gl); | ||
464 | } | ||
465 | |||
466 | return error; | ||
467 | } | ||
468 | |||
469 | /** | 450 | /** |
470 | * gfs2_make_fs_rw - Turn a Read-Only FS into a Read-Write one | 451 | * gfs2_make_fs_rw - Turn a Read-Only FS into a Read-Write one |
471 | * @sdp: the filesystem | 452 | * @sdp: the filesystem |