Skip to content

Commit f3bf67c

Browse files
Matthew Wilcox (Oracle)dchinner
authored andcommitted
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>
1 parent e270356 commit f3bf67c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

fs/xfs/xfs_file.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,12 +1167,10 @@ xfs_file_open(
11671167
struct inode *inode,
11681168
struct file *file)
11691169
{
1170-
if (!(file->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS)
1171-
return -EFBIG;
11721170
if (xfs_is_shutdown(XFS_M(inode->i_sb)))
11731171
return -EIO;
11741172
file->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC;
1175-
return 0;
1173+
return generic_file_open(inode, file);
11761174
}
11771175

11781176
STATIC int

0 commit comments

Comments
 (0)