OSDN Git Service

xfs: do not call xfs_bdstrat_cb in xfs_buf_iodone_callbacks
authorChristoph Hellwig <hch@infradead.org>
Fri, 13 Jul 2012 06:24:10 +0000 (02:24 -0400)
committerBen Myers <bpm@sgi.com>
Fri, 13 Jul 2012 18:09:49 +0000 (13:09 -0500)
commit1632dcc93f55f9ab407b373da1957a727b1a7fe3
tree2a8b603f5fe9dcb6aff195a7d5999397db905f6c
parent40a9b7963df32e743c45d79a5f41445fe2476f15
xfs: do not call xfs_bdstrat_cb in xfs_buf_iodone_callbacks

xfs_bdstrat_cb only adds a check for a shutdown filesystem over
xfs_buf_iorequest, but xfs_buf_iodone_callbacks just checked for a shut down
filesystem a little earlier.  In addition the shutdown handling in
xfs_bdstrat_cb is not very suitable for this caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h
fs/xfs/xfs_buf_item.c