]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - spaceman/file.c
xfs_spaceman: remove unnecessary test in openfile()
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Sep 2019 19:37:07 +0000 (15:37 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 9 Sep 2019 19:37:07 +0000 (15:37 -0400)
commit8990666efce422c2dbe89765ec0730e179a3c3c3
tree986525b5baf23f0797f389a84067a1aa0cdde735
parent10cfd61e80f7d7d5d0b01d0f422db9e68330d5b4
xfs_spaceman: remove unnecessary test in openfile()

xfs_spaceman always records fs_path information for an open file because
spaceman requires running on XFS and it always passes a non-null fs_path
to openfile.  Therefore, openfile doesn't need the fs_path null check.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
spaceman/file.c