Whamcloud - gitweb
LU-13983 llite: rmdir releases inode on client 11/40011/4
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 22 Sep 2020 11:05:51 +0000 (19:05 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 19 Oct 2020 03:13:40 +0000 (03:13 +0000)
commit4a4794364eb05f7f6cb4600af986951353d034f4
tree68fe858203017579ed4ff60a03a24eed44fda252
parentf6daee15b2c8ecc0c994b6ad0ebf4fdb58738bd9
LU-13983 llite: rmdir releases inode on client

Same as file unlink, rmdir should release inode on client, to achieve
this, ll_rmdir() update inode i_nlink after rmdir, then the last
iput() will release the inode.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I9181151de1830b48986afec30c83120e9f112a85
Reviewed-on: https://review.whamcloud.com/40011
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/namei.c
lustre/tests/sanity.sh