exofs: Add offset/length to exofs_get_io_state
authorBoaz Harrosh <bharrosh@panasas.com>
Tue, 16 Nov 2010 18:09:58 +0000 (20:09 +0200)
committerBoaz Harrosh <bharrosh@panasas.com>
Sun, 7 Aug 2011 02:35:31 +0000 (19:35 -0700)
In future raid code we will need to know the IO offset/length
and if it's a read or write to determine some of the array
sizes we'll need.

So add a new exofs_get_rw_state() API for use when
writeing/reading. All other simple cases are left using the
old way.

The major change to this is that now we need to call
exofs_get_io_state later at inode.c::read_exec and
inode.c::write_exec when we actually know these things. So this
patch is kept separate so I can test things apart from other
changes.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/exofs.h
fs/exofs/inode.c
fs/exofs/ios.c

Simple merge
Simple merge
diff --cc fs/exofs/ios.c
Simple merge