提交 eaf92540 编写于 作者: E Eric Biggers 提交者: Darrick J. Wong

xfs: remove a stale comment from xfs_file_aio_write_checks()

The comment in xfs_file_aio_write_checks() about calling file_modified()
after dropping the ilock doesn't make sense, because the code that
unconditionally acquires and drops the ilock was removed by
commit 467f7899 ("xfs: reduce ilock hold times in
xfs_file_aio_write_checks").

Remove this outdated comment.
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NEric Biggers <ebiggers@google.com>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
上级 30151967
...@@ -389,12 +389,6 @@ xfs_file_aio_write_checks( ...@@ -389,12 +389,6 @@ xfs_file_aio_write_checks(
} else } else
spin_unlock(&ip->i_flags_lock); spin_unlock(&ip->i_flags_lock);
/*
* Updating the timestamps will grab the ilock again from
* xfs_fs_dirty_inode, so we have to call it after dropping the
* lock above. Eventually we should look into a way to avoid
* the pointless lock roundtrip.
*/
return file_modified(file); return file_modified(file);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册