xfs: Use generic_file_open()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 11 Apr 2022 20:49:40 +0000 (06:49 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 11 Apr 2022 20:49:40 +0000 (06:49 +1000)
commitf3bf67c6c6fe863b7946ac0c2214a147dc50523d
tree7015903446c3cbec02bc9d79291fa9e6d405418c
parente270356944ccba0a9c23b4d0751d2e029184ad21
xfs: Use generic_file_open()

Remove the open-coded check of O_LARGEFILE.  This changes the errno
to be the same as other filesystems; it was changed generically in
2.6.24 but that fix skipped XFS.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c