From: alebre <al...@us...> - 2011-01-16 21:03:27
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "kdfs". The branch, make_kdfs_compile has been updated via d3073641f89532f79fe44fcb6748637ca0c490ec (commit) from cc6fabae0376d5eeec74875ff1ea180a76b77433 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit d3073641f89532f79fe44fcb6748637ca0c490ec Author: ad <leb...@fr...> Date: Sun Jan 16 22:02:43 2011 +0000 Temporary fix for k_inode and extent issue concerns with regard to memory allocation - Adrien diff --git a/fs/kdfs/inode.c b/fs/kdfs/inode.c index 95e05ce..1885d53 100644 --- a/fs/kdfs/inode.c +++ b/fs/kdfs/inode.c @@ -1300,8 +1300,16 @@ int kdfs_iol_inode_invalidate_object(kddm_obj_t *objEntry, } d_drop(dentry); } + + // Free memory previously allocated since we do not keep the object + // Due to current file extent import and export issues (during an import, we do + // not check the content of the extent list. Instead, we simple init the list and add the received ones) + kdfs_file_extent_free(k_inode); + kfree(k_inode); + PRINT_FUNCTION_EXIT; - return KDDM_IO_KEEP_OBJECT; // in order to keep the object +// return KDDM_IO_KEEP_OBJECT; // in order to keep the object + return 0; } /* * Sync an inode struct (mark at dirty on the right node). ----------------------------------------------------------------------- Summary of changes: fs/kdfs/inode.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) hooks/post-receive -- kdfs |