]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dio: create a dio_aligned() helper function
authorZach Brown <zach.brown@oracle.com>
Fri, 3 Sep 2010 21:17:00 +0000 (14:17 -0700)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Fri, 13 Jan 2012 00:11:45 +0000 (18:11 -0600)
commit73781d43e5c516624d45687a385ebfc204b1ba3f
tree03646299450e4434db777c1eb3dff173a8b0c5ef
parent230eb11ca261bd53102389fa8eaa88521320806f
dio: create a dio_aligned() helper function

__blockdev_direct_IO() had two instances of the same code to determine
if a given offset wasn't aligned first to the inode's blkbits and then
to the underlying device's blkbits.   This was confusing enough but
we're about to add code that performs the same check on offsets in bvec
arrays.  Rather than add yet more copies of this code let's have
everyone call a helper.

Signed-off-by: Zach Brown <zach.brown@oracle.com>
fs/direct-io.c