Re: [PATCH] ceph: convert {n}ref from atomic_t to refcount_t

2021-04-19 Thread Jeff Layton
On Wed, 2021-03-24 at 18:26 +0800, Yejune Deng wrote: > refcount_t type should be used instead of atomic_t when the variable > is used as a reference counter. This is because the implementation of > refcount_t can prevent overflows and detect possible use-after-free. > > Signed-off-by: Yejune Deng

Re: [PATCH] ceph: convert {n}ref from atomic_t to refcount_t

2021-03-24 Thread Jeff Layton
On Wed, 2021-03-24 at 18:26 +0800, Yejune Deng wrote: > refcount_t type should be used instead of atomic_t when the variable > is used as a reference counter. This is because the implementation of > refcount_t can prevent overflows and detect possible use-after-free. > > Signed-off-by: Yejune Deng

[PATCH] ceph: convert {n}ref from atomic_t to refcount_t

2021-03-24 Thread Yejune Deng
refcount_t type should be used instead of atomic_t when the variable is used as a reference counter. This is because the implementation of refcount_t can prevent overflows and detect possible use-after-free. Signed-off-by: Yejune Deng --- fs/ceph/mds_client.h | 2 +- fs/ceph/snap.c | 27 +