|
@@ -1635,7 +1635,7 @@ xfs_release(
|
|
truncated = xfs_iflags_test_and_clear(ip, XFS_ITRUNCATED);
|
|
truncated = xfs_iflags_test_and_clear(ip, XFS_ITRUNCATED);
|
|
if (truncated) {
|
|
if (truncated) {
|
|
xfs_iflags_clear(ip, XFS_IDIRTY_RELEASE);
|
|
xfs_iflags_clear(ip, XFS_IDIRTY_RELEASE);
|
|
- if (VN_DIRTY(VFS_I(ip)) && ip->i_delayed_blks > 0) {
|
|
|
|
|
|
+ if (ip->i_delayed_blks > 0) {
|
|
error = filemap_flush(VFS_I(ip)->i_mapping);
|
|
error = filemap_flush(VFS_I(ip)->i_mapping);
|
|
if (error)
|
|
if (error)
|
|
return error;
|
|
return error;
|