]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: separate __sb_start_write into blocking and non-blocking helpers
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Nov 2020 00:50:21 +0000 (16:50 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Nov 2020 00:53:07 +0000 (16:53 -0800)
commitba3a46008f2ee31a2f1cc31349aaf3a736c983c3
tree087a8483185efcea30c589182dfe28514f9d1f2a
parent6b2d7b8b6351b8ed342a91aae8558686e43bf911
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>
fs/aio.c
fs/io_uring.c
fs/super.c
include/linux/fs.h