]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: only set extent size hint when asked
authorDave Chinner <dchinner@redhat.com>
Wed, 1 Oct 2014 23:20:30 +0000 (09:20 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 1 Oct 2014 23:20:30 +0000 (09:20 +1000)
commit8c303183bfadb2d1b3122c596c655b0919e0c6e1
tree65792de124a5226965a8e95b68109a0a7531aea4
parentda5f912ad4fa73cb2b70a993376056cfd7ec4c62
xfs: only set extent size hint when asked

Currently the extent size hint is set unconditionally in
xfs_ioctl_setattr() when the FSX_EXTSIZE flag is set. Hence we can
set hints when the inode flags indicating the hint should be used
are not set.  Hence only set the extent size hint from userspace
when the inode has the XFS_DIFLAG_EXTSIZE flag set to indicate that
we should have an extent size hint set on the inode.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_ioctl.c