]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4: convert swap_inode_data() over to use swap() on most of the fields
authorJeff Layton <jlayton@redhat.com>
Mon, 31 Jul 2017 04:55:34 +0000 (00:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 31 Jul 2017 04:55:34 +0000 (00:55 -0400)
commit9c5d58fb9e1df8c9ead4daf9e770ce61e4256e02
tree99ee08e223359bf4afc49fa120ec14e8c384ac0b
parent191eac33009e6a6d31e87cfa425a20d0e79704b4
ext4: convert swap_inode_data() over to use swap() on most of the fields

For some odd reason, it forces a byte-by-byte copy of each field. A
plain old swap() on most of these fields would be more efficient. We
do need to retain the memswap of i_data however as that field is an array.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/ext4/ioctl.c