]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: combine xfs_seek_hole & xfs_seek_data
authorEric Sandeen <sandeen@sandeen.net>
Tue, 9 Sep 2014 01:56:48 +0000 (11:56 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 9 Sep 2014 01:56:48 +0000 (11:56 +1000)
commit49c69591c80648c14ff87525e97ee6ebe3a343cb
tree55d217ff0eb9ec2f152ba5a980fbf92d93fff091
parent2e2271787419a12496bf5da5c3028a9c73c9697f
xfs: combine xfs_seek_hole & xfs_seek_data

xfs_seek_hole & xfs_seek_data are remarkably similar;
so much so that they can be combined, saving a fair
bit of semi-complex code duplication.

The following patch passes generic/285 and generic/286,
which specifically test seek behavior.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c