]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: Move AGI buffer type setting to xfs_read_agi
authorEric Sandeen <sandeen@sandeen.net>
Mon, 9 Jan 2017 15:38:48 +0000 (16:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:42 +0000 (11:39 +0100)
commitbdbfd4ee6bc7aa37062f0222a143b3c3fee7282e
tree54ad78a694c1c8c6a140449c57c15cebf3d64bff
parent06ac11df915d5d607780b86fa7d98f1ab57dab16
xfs: Move AGI buffer type setting to xfs_read_agi

commit 200237d6746faaeaf7f4ff4abbf13f3917cee60a upstream.

We've missed properly setting the buffer type for
an AGI transaction in 3 spots now, so just move it
into xfs_read_agi() and set it if we are in a transaction
to avoid the problem in the future.

This is similar to how it is done in i.e. the dir3
and attr3 read functions.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_log_recover.c