diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-11-11 01:50:21 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-11-11 01:53:07 +0100 |
commit | 8a3c84b649b033024d2349f96234b26cbd6083a6 (patch) | |
tree | 087a8483185efcea30c589182dfe28514f9d1f2a /fs/aio.c | |
parent | vfs: remove lockdep bogosity in __sb_start_write (diff) | |
download | linux-8a3c84b649b033024d2349f96234b26cbd6083a6.tar.xz linux-8a3c84b649b033024d2349f96234b26cbd6083a6.zip |
vfs: separate __sb_start_write into blocking and non-blocking helpers
Break this function into two helpers so that it's obvious that the
trylock versions return a value that must be checked, and the blocking
versions don't require that. While we're at it, clean up the return
type mismatch.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1572,7 +1572,7 @@ static int aio_write(struct kiocb *req, const struct iocb *iocb, * we return to userspace. */ if (S_ISREG(file_inode(file)->i_mode)) { - __sb_start_write(file_inode(file)->i_sb, SB_FREEZE_WRITE, true); + sb_start_write(file_inode(file)->i_sb); __sb_writers_release(file_inode(file)->i_sb, SB_FREEZE_WRITE); } req->ki_flags |= IOCB_WRITE; |