linux/fs/ceph
Ilya Dryomov 34b759b4a2 ceph: kill ceph_empty_snapc
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 8605609049 ("ceph: avoid
sending unnessesary FLUSHSNAP message") and 23078637e0 ("ceph: fix
queuing inode to mdsdir's snaprealm").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by:  Yan, Zheng <zyan@redhat.com>
2016-03-25 18:51:52 +01:00
..
acl.c posix acls: Remove duplicate xattr name definitions 2015-12-06 21:25:17 -05:00
addr.c ceph: kill ceph_empty_snapc 2016-03-25 18:51:52 +01:00
cache.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2016-01-24 12:34:13 -08:00
cache.h
caps.c ceph: encode ctime in cap message 2016-03-25 18:51:40 +01:00
ceph_frag.c
debugfs.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
dir.c wrappers for ->i_mutex access 2016-01-22 18:04:28 -05:00
export.c wrappers for ->i_mutex access 2016-01-22 18:04:28 -05:00
file.c ceph: replace CURRENT_TIME by current_fs_time() 2016-03-25 18:51:52 +01:00
inode.c ceph: replace CURRENT_TIME by current_fs_time() 2016-03-25 18:51:52 +01:00
ioctl.c
ioctl.h
Kconfig
locks.c Move locks API users to locks_lock_inode_wait() 2015-10-22 14:57:36 -04:00
Makefile
mds_client.c ceph: replace CURRENT_TIME by current_fs_time() 2016-03-25 18:51:52 +01:00
mds_client.h ceph: initial CEPH_FEATURE_FS_FILE_LAYOUT_V2 support 2016-03-04 21:00:37 +01:00
mdsmap.c
snap.c ceph: kill ceph_empty_snapc 2016-03-25 18:51:52 +01:00
strings.c ceph: rename snapshot support 2015-04-22 18:33:41 +03:00
super.c ceph: kill ceph_empty_snapc 2016-03-25 18:51:52 +01:00
super.h ceph: kill ceph_empty_snapc 2016-03-25 18:51:52 +01:00
xattr.c ceph: replace CURRENT_TIME by current_fs_time() 2016-03-25 18:51:52 +01:00