Revision 34b759b4a22b0acb82423389a24699357798cf3c authored by Ilya Dryomov on 16 February 2016, 14:00:24 UTC, committed by Ilya Dryomov on 25 March 2016, 17:51:52 UTC
ceph_empty_snapc->num_snaps == 0 at all times.  Passing such a snapc to
ceph_osdc_alloc_request() (possibly through ceph_osdc_new_request()) is
equivalent to passing NULL, as ceph_osdc_alloc_request() uses it only
for sizing the request message.

Further, in all four cases the subsequent ceph_osdc_build_request() is
passed NULL for snapc, meaning that 0 is encoded for seq and num_snaps
and making ceph_empty_snapc entirely useless.  The two cases where it
actually mattered were removed in commits 860560904962 ("ceph: avoid
sending unnessesary FLUSHSNAP message") and 23078637e054 ("ceph: fix
queuing inode to mdsdir's snaprealm").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by:  Yan, Zheng <zyan@redhat.com>
1 parent ce43559
History
File Mode Size
test
.gitignore -rw-r--r-- 44 bytes
Makefile -rw-r--r-- 3.6 KB
algos.c -rw-r--r-- 5.9 KB
altivec.uc -rw-r--r-- 3.3 KB
avx2.c -rw-r--r-- 8.6 KB
int.uc -rw-r--r-- 3.7 KB
mktables.c -rw-r--r-- 3.6 KB
mmx.c -rw-r--r-- 3.9 KB
neon.c -rw-r--r-- 2.1 KB
neon.uc -rw-r--r-- 3.4 KB
recov.c -rw-r--r-- 3.6 KB
recov_avx2.c -rw-r--r-- 9.0 KB
recov_ssse3.c -rw-r--r-- 9.2 KB
sse1.c -rw-r--r-- 4.9 KB
sse2.c -rw-r--r-- 16.1 KB
tilegx.uc -rw-r--r-- 2.2 KB
unroll.awk -rw-r--r-- 424 bytes
x86.h -rw-r--r-- 2.0 KB

back to top