]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: set buf types when converting extent formats
authorDave Chinner <dchinner@redhat.com>
Wed, 21 Jan 2015 22:30:06 +0000 (09:30 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:57:16 +0000 (14:57 -0800)
commitcf631816ecc657cf7b616fd0b6ce56fbab91f086
tree67f3b3bca9467eb8112859e0cc130ea6721998c4
parent082995eefbc77bad609f2b8bd704ee2c7a0cc4b8
xfs: set buf types when converting extent formats

commit fe22d552b82d7cc7de1851233ae8bef579198637 upstream.

Conversion from local to extent format does not set the buffer type
correctly on the new extent buffer when a symlink data is moved out
of line.

Fix the symlink code and leave a comment in the generic bmap code
reminding us that the format-specific data copy needs to set the
destination buffer type appropriately.

Tested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_symlink_remote.c