diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-09-27 01:20:21 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-03-28 10:40:41 -0700 |
commit | 243f02a5ef77d69fa91c18092d5da8578bb8f042 (patch) | |
tree | 077989a974e9d49ac8466bde4e13e2124b61e5e2 /libglusterfs/src/fd.h | |
parent | bfb6366bd2a6de4cb5322dda72fbc1e6ad1edc41 (diff) |
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 <raghavendra@gluster.com>
Reviewed-on: http://review.gluster.com/506
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Shishir Gowda <shishirng@gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'libglusterfs/src/fd.h')
-rw-r--r-- | libglusterfs/src/fd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libglusterfs/src/fd.h b/libglusterfs/src/fd.h index be9800b3001..cd75e53ea67 100644 --- a/libglusterfs/src/fd.h +++ b/libglusterfs/src/fd.h @@ -120,9 +120,17 @@ 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); |