From 4e1317aae55c86080463bff52414545fbfafe049 Mon Sep 17 00:00:00 2001 From: hno <> Date: Mon, 22 Oct 2001 15:41:39 +0000 Subject: [PATCH] Properly account "Store Disk files open" in "aufs", even if the opening fails or otherwise is rejected by the I/O layer. --- src/fs/aufs/store_io_aufs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/aufs/store_io_aufs.cc b/src/fs/aufs/store_io_aufs.cc index 3c2cf579cc..9a7dec0337 100644 --- a/src/fs/aufs/store_io_aufs.cc +++ b/src/fs/aufs/store_io_aufs.cc @@ -409,12 +409,12 @@ storeAufsIOCallback(storeIOState * sio, int errflag) cbdataUnlock(their_data); aiostate->fd = -1; cbdataFree(sio); + store_open_disk_fd--; if (fd < 0) return; debug(78, 3) ("%s:%d\n", __FILE__, __LINE__); aioClose(fd); fd_close(fd); - store_open_disk_fd--; debug(78, 3) ("%s:%d\n", __FILE__, __LINE__); } -- 2.47.2