]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r253050:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 11 Jul 2013 19:18:13 +0000 (19:18 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 11 Jul 2013 19:18:13 +0000 (19:18 +0000)
commitdb4db93d385f5e83c80ba6302ccffca984f3cd67
tree9d2e39fa1025f1d3f2af0b39c1d8191ada5cca1c
parent27ce77d3267c416b09f2c0facd7d64daed00ead6
MFC r253050:

Enhancement when writing an entire block of a file (from UFS r231313).

This change first attempts the uiomove() to the newly allocated
(and dirty) buffer and only zeros it if the uiomove() fails. The
effect is to eliminate the gratuitous zeroing of the buffer in
the usual case where the uiomove() successfully fills it.

git-svn-id: svn://svn.freebsd.org/base/stable/9@253218 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/ext2fs/ext2_vnops.c