Whamcloud - gitweb
- many fixes about using ENTRY, RETURN, GOTO and EXIT.
authoryury <yury>
Fri, 12 Aug 2005 12:21:14 +0000 (12:21 +0000)
committeryury <yury>
Fri, 12 Aug 2005 12:21:14 +0000 (12:21 +0000)
commitb77699e7dd72e1940df50e075da9ba27f4fcc998
treeaab733c2188876e80c3502d156664dab18a8c35e
parent13b5f0110cfc40c63cef404dec4dba5994ebd953
- many fixes about using ENTRY, RETURN, GOTO and EXIT.
- md_close() chnaged to use mdc_op_data like other md_* functions instead of using obdo.
- fixed prototype declaration for llapi_lov_get_uuids() - bug #6900
- fixed error message in ll_gns_mount_object() - bug #7146

- a lot of fixes about memory allocation/freeing:
  - checks is memory is actually allocated by OBD_ALLOC() before sing it and do appropriate
    actions otherwise.

  - fixed many leaks on error paths.
  - fixed missed OBD_FREE(capa_hash) in capa_cache_cleanup()

- fixed few on stack allocatoins of mdc_op_data in new landed stuff.

- in smfs_mount_cache() fixes correct cleanup in the cases of memory allocation failures.
  Do mntput() for new mounted cache_mnt on error path.

- in smfs_umount_cache() nullify smb->smsi_cache_ftype and smb->smsi_ftype after freeing
  them, to prevent attempt to free again if smfs_umount_cache() is called second time.
30 files changed:
lustre/cmobd/cm_write.c
lustre/cobd/cache_obd.c
lustre/include/liblustre.h
lustre/include/linux/lustre_idl.h
lustre/include/linux/lustre_mds.h
lustre/include/linux/obd.h
lustre/include/linux/obd_class.h
lustre/include/lustre/liblustreapi.h
lustre/liblustre/file.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_gns.c
lustre/llite/llite_gs.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/lmv/lmv_intent.c
lustre/lmv/lmv_obd.c
lustre/lvfs/fsfilt_snap_ext3.c
lustre/lvfs/lvfs_linux.c
lustre/mdc/mdc_internal.h
lustre/mdc/mdc_lib.c
lustre/mdc/mdc_request.c
lustre/mds/handler.c
lustre/mds/mds_lib.c
lustre/mds/mds_lmv.c
lustre/obdclass/capa.c
lustre/sec/gks/gks_server.c
lustre/smfs/options.c
lustre/smfs/smfs_cow.c
lustre/smfs/smfs_lib.c