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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 8.2 KB |
Makefile | -rw-r--r-- | 636 bytes |
asn1.c | -rw-r--r-- | 13.6 KB |
cache.c | -rw-r--r-- | 8.0 KB |
cifs_debug.c | -rw-r--r-- | 17.9 KB |
cifs_debug.h | -rw-r--r-- | 2.0 KB |
cifs_dfs_ref.c | -rw-r--r-- | 9.8 KB |
cifs_fs_sb.h | -rw-r--r-- | 3.2 KB |
cifs_ioctl.h | -rw-r--r-- | 1.3 KB |
cifs_spnego.c | -rw-r--r-- | 4.8 KB |
cifs_spnego.h | -rw-r--r-- | 1.6 KB |
cifs_unicode.c | -rw-r--r-- | 15.5 KB |
cifs_unicode.h | -rw-r--r-- | 10.2 KB |
cifs_uniupr.h | -rw-r--r-- | 12.6 KB |
cifsacl.c | -rw-r--r-- | 30.4 KB |
cifsacl.h | -rw-r--r-- | 2.9 KB |
cifsencrypt.c | -rw-r--r-- | 24.0 KB |
cifsfs.c | -rw-r--r-- | 35.8 KB |
cifsfs.h | -rw-r--r-- | 5.8 KB |
cifsglob.h | -rw-r--r-- | 53.9 KB |
cifspdu.h | -rw-r--r-- | 83.8 KB |
cifsproto.h | -rw-r--r-- | 23.2 KB |
cifssmb.c | -rw-r--r-- | 192.1 KB |
connect.c | -rw-r--r-- | 109.4 KB |
dir.c | -rw-r--r-- | 23.8 KB |
dns_resolve.c | -rw-r--r-- | 2.8 KB |
dns_resolve.h | -rw-r--r-- | 1.2 KB |
export.c | -rw-r--r-- | 2.4 KB |
file.c | -rw-r--r-- | 100.5 KB |
fscache.c | -rw-r--r-- | 6.8 KB |
fscache.h | -rw-r--r-- | 4.8 KB |
inode.c | -rw-r--r-- | 62.6 KB |
ioctl.c | -rw-r--r-- | 7.7 KB |
link.c | -rw-r--r-- | 17.9 KB |
misc.c | -rw-r--r-- | 17.7 KB |
netmisc.c | -rw-r--r-- | 39.5 KB |
nterr.c | -rw-r--r-- | 33.5 KB |
nterr.h | -rw-r--r-- | 30.0 KB |
ntlmssp.h | -rw-r--r-- | 5.7 KB |
readdir.c | -rw-r--r-- | 24.5 KB |
rfc1002pdu.h | -rw-r--r-- | 2.8 KB |
sess.c | -rw-r--r-- | 38.8 KB |
smb1ops.c | -rw-r--r-- | 32.0 KB |
smb2file.c | -rw-r--r-- | 7.5 KB |
smb2glob.h | -rw-r--r-- | 1.9 KB |
smb2inode.c | -rw-r--r-- | 7.5 KB |
smb2maperror.c | -rw-r--r-- | 126.9 KB |
smb2misc.c | -rw-r--r-- | 18.8 KB |
smb2ops.c | -rw-r--r-- | 56.8 KB |
smb2pdu.c | -rw-r--r-- | 80.1 KB |
smb2pdu.h | -rw-r--r-- | 36.0 KB |
smb2proto.h | -rw-r--r-- | 8.6 KB |
smb2status.h | -rw-r--r-- | 125.2 KB |
smb2transport.c | -rw-r--r-- | 17.9 KB |
smbencrypt.c | -rw-r--r-- | 6.3 KB |
smberr.h | -rw-r--r-- | 7.5 KB |
smbfsctl.h | -rw-r--r-- | 6.5 KB |
transport.c | -rw-r--r-- | 27.5 KB |
winucase.c | -rw-r--r-- | 36.9 KB |
xattr.c | -rw-r--r-- | 12.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...