]> 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, 5 Dec 2016 01:31:31 +0000 (12:31 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 5 Dec 2016 01:31:31 +0000 (12:31 +1100)
commit200237d6746faaeaf7f4ff4abbf13f3917cee60a
treece673685afb42bc407116ef7c051ef2364649928
parent6b10b23ca94451fae153a5cc8d62fd721bec2019
xfs: Move AGI buffer type setting to xfs_read_agi

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>
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_log_recover.c