INT32 FsGetVolInfo(struct super_block *sb, VOL_INFO_T *info) { INT32 err; FS_INFO_T *p_fs = &(EXFAT_SB(sb)->fs_info); if (info == NULL) return(FFS_ERROR); sm_P(&(fs_struct[p_fs->drv].v_sem)); err = ffsGetVolInfo(sb, info); sm_V(&(fs_struct[p_fs->drv].v_sem)); return(err); }
/* FsGetVolInfo : get the information of a file system volume */ INT32 FsGetVolInfo(struct super_block *sb, VOL_INFO_T *info) { INT32 err; FS_INFO_T *p_fs = &(EXFAT_SB(sb)->fs_info); /* check the validity of pointer parameters */ if (info == NULL) return(FFS_ERROR); /* acquire the lock for file system critical section */ sm_P(&(fs_struct[p_fs->drv].v_sem)); err = ffsGetVolInfo(sb, info); /* release the lock for file system critical section */ sm_V(&(fs_struct[p_fs->drv].v_sem)); return(err); } /* end of FsGetVolInfo */