From 243f02a5ef77d69fa91c18092d5da8578bb8f042 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 27 Sep 2011 01:20:21 +0530 Subject: performance/quick-read: make unlink aware of open-behind behaviour of quick-read. quick-read should do an open of all the fds that are waiting for to be opened behind before doing an unlink on a path. Change-Id: I4c8d65c0511e8a37765ff57e30d99dd89b56c4fc BUG: 765363 Signed-off-by: Raghavendra G Reviewed-on: http://review.gluster.com/506 Tested-by: Gluster Build System Reviewed-by: Shishir Gowda Reviewed-by: Vijay Bellur --- libglusterfs/src/fd.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libglusterfs/src/fd.h') diff --git a/libglusterfs/src/fd.h b/libglusterfs/src/fd.h index be9800b30..cd75e53ea 100644 --- a/libglusterfs/src/fd.h +++ b/libglusterfs/src/fd.h @@ -119,10 +119,18 @@ void gf_fd_fdtable_destroy (fdtable_t *fdtable); +fd_t * +__fd_ref (fd_t *fd); + + fd_t * fd_ref (fd_t *fd); +fd_t * +__fd_unref (fd_t *fd); + + void fd_unref (fd_t *fd); -- cgit