We have moved to more efficient array based ctx quite some time back, but had kept 'dict_t *ctx' as is, and its still allocating a dictionary for every inode, and every fd, and destroying it while freeing, and no use in between. This cleanup will reduce complexity of understanding code a little, and save some memory allocate and free operations.
PATCH: http://patches.gluster.com/patch/727 in master (cleanup 'ctx' from inode and fd)