ovl: remove the 'locked' argument of ovl_nlink_{start,end}
authorAmir Goldstein <amir73il@gmail.com>
Thu, 18 Oct 2018 15:37:13 +0000 (18:37 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 26 Oct 2018 21:34:40 +0000 (23:34 +0200)
commit0e32992f7faccd50d1b00032de83e87a35fed247
tree3143c2007ff1061bff7517016592d71b46c81911
parent9df085f3c9a2d4658a9fe323d70c200aa00ede93
ovl: remove the 'locked' argument of ovl_nlink_{start,end}

It just makes the interface strange without adding any significant value.
The only case where locked is false and return value is 0 is in
ovl_rename() when new is negative, so handle that case explicitly in
ovl_rename().

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/dir.c
fs/overlayfs/overlayfs.h
fs/overlayfs/util.c