summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf_item.c
diff options
context:
space:
mode:
authorAlex Elder <aelder@sgi.com>2011-07-22 18:04:41 +0200
committerAlex Elder <aelder@sgi.com>2011-08-09 22:30:43 +0200
commite44f4112a46ca817fe2758aac7bf7893a64a8c0e (patch)
tree5482bffa17b6c335a1140d9a51857fe809772739 /fs/xfs/xfs_buf_item.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torval... (diff)
downloadlinux-e44f4112a46ca817fe2758aac7bf7893a64a8c0e.tar.xz
linux-e44f4112a46ca817fe2758aac7bf7893a64a8c0e.zip
xfs: set cursor in xfs_ail_splice() even when AIL was empty
In xfs_ail_splice(), if a cursor is provided it is updated to point to the last item on the list being spliced into the AIL. But if the AIL was found to be empty, the cursor (if provided) is just initialized instead. There is no reason the empty AIL case needs to be treated any differently. And treating it the same way allows this code to be rearranged a bit, with a somewhat tidier result. Signed-off-by: Alex Elder <aelder@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
0 files changed, 0 insertions, 0 deletions