Skip to content

Commit

Permalink
xfs: FSX_NONBLOCK is not used
Browse files Browse the repository at this point in the history
It is set if the filp is set ot non-blocking, but the flag is not
used anywhere. Hence we can kill it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
  • Loading branch information
Dave Chinner authored and Dave Chinner committed Feb 1, 2015
1 parent 074e427 commit 817b6c4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/xfs/xfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,6 @@ xfs_diflags_to_linux(
#define FSX_PROJID 1
#define FSX_EXTSIZE 2
#define FSX_XFLAGS 4
#define FSX_NONBLOCK 8

STATIC int
xfs_ioctl_setattr(
Expand Down Expand Up @@ -1299,8 +1298,6 @@ xfs_ioc_fssetxattr(
return -EFAULT;

mask = FSX_XFLAGS | FSX_EXTSIZE | FSX_PROJID;
if (filp->f_flags & (O_NDELAY|O_NONBLOCK))
mask |= FSX_NONBLOCK;

error = mnt_want_write_file(filp);
if (error)
Expand Down Expand Up @@ -1343,8 +1340,6 @@ xfs_ioc_setxflags(
return -EOPNOTSUPP;

mask = FSX_XFLAGS;
if (filp->f_flags & (O_NDELAY|O_NONBLOCK))
mask |= FSX_NONBLOCK;
fa.fsx_xflags = xfs_merge_ioc_xflags(flags, xfs_ip2xflags(ip));

error = mnt_want_write_file(filp);
Expand Down

0 comments on commit 817b6c4

Please sign in to comment.