]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Use struct align_fd to cache fd's block size for aligned reads/writes
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 20 Mar 2012 21:01:20 +0000 (08:01 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 20 Mar 2012 21:01:20 +0000 (08:01 +1100)
commit308340aa585aed1f3703e03768d2973ffff83b12
tree956246d8aa90c724f1be3be713432e2810f1b330
parent3c0bcd460908469613fae3bdf25e191f9d65e70b
Use struct align_fd to cache fd's block size for aligned reads/writes

This uses a struct to cache the block size for aligned reads/writes,
to avoid repeated ioctl(BLKSSZGET) calls.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super1.c